Reads and parses a command followed by arguments on the serial port.