Re: To automate tasks using WinSCP with BATCH file.
That means you are trying to run WinSCP command[s] directly on Windows console (or in a batch file), instead of putting them to WinSCP script and running WinSCP from console/batch file.
You might be having this or similar problem:
https://winscp.net/eng/docs/faq_batch_file#cmd
You might be having this or similar problem:
https://winscp.net/eng/docs/faq_batch_file#cmd