Question: how to copy files from linux to windows using powershell?
Answer: First install WinSCP wrapper to enable use of SCP from PowerShell. ...  Run the WinSCP application to collect the key from the target Linux host. Generate credentials to be used by a script to copy files. ...  If needed, set up a scheduled task to run the copy script on an interval.