28,655 questions
This .bat worked for me with a given DeviceID :
@echo off
REM deviceID="USB\VID_1A40&PID_0101\5&212AC8FC&0&8"
set deviceID="USB\VID_1A40^&PID_0101\5^&212AC8FC^&0^&8"
PowerShell -Command "Get-WmiObject -Namespace 'Root\WMI' -Class 'MSPower_DeviceEnable' | Where-Object { $_.InstanceName -like '*%deviceID%*' } | ForEach-Object { $_.Enable = $false; $_.Put() }"