URScript to get and set operational mode? manual/auto

Can you please help with the URScript to get and set operational mode?