Tried write a script but it does not download the file
winscp.com.exe sftp://usernamee:password @sftp.servername.com/ -hostkey=* # Change remote directory echo cd /folder # Download file to the local directory echo get file.txt c:\Users\user\Download # Disconnect echo exit