How do you get 3D Studio Max's MaxScript to receive serial port signals?

Is anyone familiar enough with MaxScript to know how to receive a serial connection from a USB-Serial adapter? In particular, I want to send a series of analog values to the program from an Arduino when a button is pressed (either a MaxScript panel button, or actual, physical button, whatever is easier).