Serial port control of power switch