I have script is able to login by by using public key authentication as below. However, it doesn't execute anything afterward, such as 'cd INBOUND". Any Idea? I even tried to put before open
"C:\Program Files\WinSCP\"winscp.com /log=C:\Inetpub\ftproot\CSTCCxFTP\CSTCCBatch\ADP\DP\DP.log-%datestr%-%timestr%.log /command "option batch abort" "open CINCISTATEpPSSsftp@184.108.40.206" /hostkey ="ssh-rsa 1023 37:4a:1c:5e:5b:0f:14:ef:31:81:42:b6:d7:fc:c5:db" "cd INBOUND" "put dp.log"