Re: PowerShell automation to upload files
The
This might also help you (with some differences, as you are using PowerShell and not a batch file):
Why are some WinSCP scripting commands specified in a batch file not executed/failing?
Though note that in PowerShell, it's better to use WinSCP .NET assembly:
https://winscp.net/eng/docs/library_powershell
put
is correct. Show us how exactly did you try to use it.
This might also help you (with some differences, as you are using PowerShell and not a batch file):
Why are some WinSCP scripting commands specified in a batch file not executed/failing?
Though note that in PowerShell, it's better to use WinSCP .NET assembly:
https://winscp.net/eng/docs/library_powershell