Re: Error 9009
Also, be carefull on continuation character (^) if you're using a script. It must be the last character in the line. If there is a blank after it, cmd does not join follwing lines as command parameter to WinSCP. As WinSCP does not received the last command (usually "exit"), it enters interpreter mode, thus stopping the script.
Documented here:
https://winscp.net/eng/docs/faq_batch_file#newline_escaping