Re: Is this possible to do from a script with WinSCP
It's difficult to tell if it would even work with WinSCP.
But in any case, WinSCP is a file transfer client. So unless you need to combine a command execution with a file tramsfer, WinSCP's not the right tool for such a task.
Consider using Plink from PuTTY package.
https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter7.html
https://stackoverflow.com/q/39361444/850848
But in any case, WinSCP is a file transfer client. So unless you need to combine a command execution with a file tramsfer, WinSCP's not the right tool for such a task.
Consider using Plink from PuTTY package.
https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter7.html
https://stackoverflow.com/q/39361444/850848