Some small programs and libs, in various languages, to control FTDI USB FT232 chip CBUS programable pins.
Great product ft232cbusctrl
I needed to switch my USB controled power plug using my PC. The power plug is switching on or off weather 5v USB power is present. TFDI FT232R chip, some solder and this program made the trick.