in reply to Automate the control of USB

Did you try to have a look at Device::USB? I know it has been written for Linux, but if you can install libusb-win32 on your PC, maybe it can work.
At least, it could give you some hints as to how to do it on Windows.