How would I go about writing to a COM port, trying to convert the following example to .Net (C#), specifically the PHP part? If possible is there an easier way to write out to a USB?
Use the SerialPort class, e.g.:
SerialPort port = new SerialPort("COM1");
see SerialPort class.