my expirence with sftp is in linux. but when i tried to run a os level script that requires password from data services. Even though i pass the password as a parameter. Os level script expects a dialog user to type in the password. As a work around, password less SFTP using Keyexchange.
What is the os of the SFTP location you're trying to read from ?
what is the error you're seeing when you try to execute this script ?