OK, then it is trivial.
You do not need PowerShell for such an easy task.
Just use WinSCP scripting and use the
https://winscp.net/eng/docs/script_download_most_recent_file#scripting
Start with:
https://winscp.net/eng/docs/guide_automation
You do not need PowerShell for such an easy task.
Just use WinSCP scripting and use the
get -latest
command as shown it:
https://winscp.net/eng/docs/script_download_most_recent_file#scripting
Start with:
https://winscp.net/eng/docs/guide_automation