Might be helpful to have RemoteCommand log the actual command line it's trying to execute with --debug.