I'm using WinSCP CLI to script a file transfer. I'm using the private/public key authentication only, the password is not set.
/command "open sftp://USER@HOST/ -privatekey=PATH_TO_KEY ..."
/nointeractiveinput switch should actually help in this scenario.
Make sure you are using the latest version of WinSCP.