If you can rely on file timestamp, use file mask with time-constaint.
See WinSCP time based file download.
If you have to rely on a file name, use the %TIMESTAMP%
syntax:
get filename_%TIMESTAMP#yyyymmdd%.txt
Also consider using WinSCP .NET assembly, instead of scripting. Particularly, if you know, say, PowerShell.