Use the following
$usbStorRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR"
# Set the Start value to 3 (which enables the USB ports)
Set-ItemProperty -Path $usbStorRegPath -Name "Start" -Value 3
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin