powershell connect to serial port

C++
Copied![System.IO.Ports.SerialPort]::getportnames()

Source

Also in C++: