You can use the command line program clip to pipe the output of a command to your clipboard.
Write-Output "Hello World!" | clip
You can use the command line program clip to pipe the output of a command to your clipboard.
Write-Output "Hello World!" | clip