End Google Ads 201810 - BS.net 01 --> How to plug/unplug USB serial port problematically?

I am facing some strange issue with my USB serial port.
I want to unplug and plug the USB Serial port Programitically, as i need to ******* the connection between system and hardware connected.Kindly help.......

Thank in advance for the great programmers