I'm not using a batch file - I'm executing a script file.
Sorry, but you really need to read my answers carefully. You have a conceptual misunderstanding of what you are doing. Your problem is that you are not using a batch file. Because you need to. Some of the commands in your WinsCP script are not WinSCP commands. Those are batch file commands. They won't ever work in WinSCP script.
Again, I'm not using winscp.com - I want to use WinSCP.exe since that is what has been working all these months. The examples I've found are all for WinSCP.com
WinSCP.comhave the same commands. Though if you use
WinSCP.exeyou will have troubles with debugging, as it's not a console application. Use
Read the link in my first answer to understand.
If you are not willing to take my advises, please do not even respond. It's a waste of a time for both of us.