set -v; /opt/bin/cmd > /tmp/my.log <<!!
"set -v; /opt/bin/cmd > /tmp/my.log <<!!\r\nLine1_CommandInput\r\nLine2_CommandInput\r\nquit;\r\n!!\r\n"
Is there any reason WinSCP would have trouble with this? I'm getting a 60 second wait and then "Terminated by user." SessionRemoteException
Also, is there a limit to the character length that can be sent via session.ExecuteCommand?