I have been looking through heaps of posts around copying to clipboard and pasting from clipboard in WSL Ubuntu terminal.
Working with clipboard in WSL
Best way to copy to clipboard is:
echo 'something' | clip.exe
Best way to paste:
powershell.exe Get-Clipboard
Using aliases for simplification
You can even put aliases in .bashrc or .bash_aliases to make it similar to Mac bash terminal:
alias pbcopy='clip.exe'
alias pbpaste='powershell.exe Get-Clipboard'
Then commands to copy from pipe would be:
echo "hello" | pbcopy
To paste to file would be:
pbpaste > pasted.txt