The switches for script commands were introduced in 4.1 beta. Make sure you are using the latest version of WinSCP.
Older versions of WinSCP were not aware of switches, hence they treat them as regular parameters, mostly as names of files. As consequence you will be getting confusing errors such as:
Site design by Black Gate