I am running into "The server rejected SFTP connection, but it listens for FTP connections. Did you want to use FTP protocol instead of SFTP?" error. Interestingly, I only get this error when running the commands as part of a txt file in a batch script. If I run the lines themselves I do not get the error. Example: