Did you read the articles I've pointed you to?
Including the part that shows, how the GUI can generate the script for you?
https://winscp.net/eng/docs/guide_automation#generating
Including the part that shows, how the GUI can generate the script for you?
https://winscp.net/eng/docs/guide_automation#generating