Basic script support for serial port communications