setmodes - Script command