PowerShell activity for all USB connected device in the system

Hii Please Help ASAP,

i need to find the list of all connected USB device in our system .So, I used below command in Invoke powershell activity.
“Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match ‘^USB’ }”

I am getting Error like:
Invoke Power Shell(Type argument not yet found): Unable to cast object of type ‘Microsoft.Management.Infrastructure.CimInstance’ to type ‘System.Management.Automation.PSObject’.