change remote script execute method

execute them in same environment