use runRemoteScriptAsSudo instead of runRemoteScript