I use gclip and pclip from:
https://sourceforge.net/projects/unxutils/
Windows programs. Put them in a directory in your path and:
command | gclip # to load clipboard
pclip | command # to access clipboard