Re: problem with Date
                WinSCP does not support environment variable formatting.
You need to generate the script file with the formatted mask using external script. Or use WinSCP .NET assembly.
For both solutions, refer to this related example:
https://winscp.net/eng/docs/script_download_timestamped_filename
        You need to generate the script file with the formatted mask using external script. Or use WinSCP .NET assembly.
For both solutions, refer to this related example:
https://winscp.net/eng/docs/script_download_timestamped_filename