Native support for Secure Copy Protocol (SCP) isn't in PowerShell, but that doesn't mean it's not capable. By using a free community module called Posh-SSH, we can transfer files via SCP just as ...
There's nothing wrong with this technique in PowerShell. I've yet to find a situation in which it doesn't work. But PowerShell has a cmdlet called Out-File, which offers a bit more flexibility. This ...