Re: SFTP works in GUI not in command line.
There's no transfer in the script log. Please post your script.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.