@raimundandree I don’t have an account there but it’s working now. When calling to Get-Device I cannot combine -name and -InstanceID, that was my problem.
Thank you, I think I figured it out. At work we needed a way to remove a device from the device manager through a script. Your PowerShell cmdlet helped with this. I had two duplicate devices and managed to use InstanceID to remove the correct one, it would not work with name & ID