Re: hm :-[
As mentioned before, use you preferred scripting language to assemble the WinSCP script.
See documentation.
See documentation.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
connect with telnet by a script before connecting