IDK what do you try to do but cli for "restart" devices already exists - look at devcon.exe from MS or my own tiny tool - https://github.com/LordOfMice/Tools/blob/master/devstate.zip
P.S. And it definitely applies for some hidusbf using (hidusbfn.zip)
IDK what do you try to do but cli for "restart" devices already exists - look at devcon.exe from MS or my own tiny tool - https://github.com/LordOfMice/Tools/blob/master/devstate.zip P.S. And it definitely applies for some hidusbf using (hidusbfn.zip)