updateportmodes - Script command