Yes. i tried sending same command that i was using on commandline ssh. and getting below error: "Pseudo-terminal will not be allocated because stdin is not a terminal.". Any leads to overcome this would help me.
Your command tries to start ssh.exe and connect to your target! That has already been taken care of by the Open SSH Client for you. You need to enter now the real shell commands that are supposed to operate on your actual target.