Update to remote command execution

Adds execute exit status checking,
and sending data to a command.