It doesn't work though. WinSCP won't take a script file when it's not called manually.
Well it should work. But as I do not know how to your run WinSCP, with what parameters and what script it is hard to tell what's going wrong.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
It doesn't work though. WinSCP won't take a script file when it's not called manually.