After playing around with:

$comport = getobject("WinMgmts:Win32_SerialPort='COM1'")

and not getting much to happen with it.. (could always be syntax, or maybe I'd have to use vbscript).. I can only think of the possibility of using SetFocus and SendKeys to go through Windows and actually do the operation. You can open the device manager by shelling to "devmgmt.msc" .. then do the operation. I'm sure there is a better solution, but I'm not a good enough programmer (at this point) to get it to work. lol

Brian