I modified runRemoteScriptAsSudo() and removed runRemoteScript() 

runRemoteScriptAsSudo() has param _runAs_