I found the start up time for powershell to be quite noticeable in WSL for scripts like that.
If copying is all you're after you can invoke `clip.exe` instead.
Honestly though I just caved and ended up using an xserver with WSL for really smooth copy and paste support. Paste requires a powershell invocation without an xserver.
Definitely recommending X410 (paid) or VcrXsrv (free) -- let's you launch x11 apps too!
Once WSLu is released everything will be even more seamless though.
e.g. I have this in my .bashrc in my centos container. It runs the windows powershell executeable to write to my windows clipboard. Not sure how they're doing it but, seems pretty magical.
function cb () { powershell.exe -command "\$input | set-clipboard" }
echo "hello" | cb # hello written to windows clipboard
All that being said, I'd be really interested in how well this project integrates the container on macs. Maybe this will be a good option for the future.