Assuming you are using Device Management cmdlets, I would suggest using the Get-Device cmdlet provided in the same package to go through the pipeline.
After a quick look, I found that the Disable-Device does not take any of the DeviceName or DriverVersion from the pipeline - and will not recognize, since this is only an identification parameter ( -TargetDevice ).
On the technologistโs page it is indicated to disconnect the device:
$deviceName = Read-Host -Prompt 'Please enter the Name of the Device to Disable'; Get-Device | Where-Object -Property Name -Like $deviceName | Disable-Device
You can simply use something like this, assuming your devicename is similar with the Get-Device cmdlet:
Get-Device | where {$_.name -like "I2C*"} | Disable-Device
source share