Re: Can't exit WinsCP once script complete
See Why are some WinSCP scripting commands specified in a batch file not executed/failing?
Particularly the section on "New-line Escaping".
Your duplicate post on Stack Overflow:
Script not close the section
Particularly the section on "New-line Escaping".
Your duplicate post on Stack Overflow:
Script not close the section