Implemented checking of remote command execution in executeRemoteCommand()

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>