I've downloaded WinScp and can see the remote server on the right.
I've written the file below. When I try to execute it like this it fails.
winscp.exe /console /script=example.txt
option batch on
option confirm off
option transfer binary
get TheFile.txt C:\