$strClass="usbhub"
Get-WmiObject -List | Where-Object {$_.Name -like "*$strClass*"} | ForEach-Object `
-Begin{Write-Host "$strclass wmi listing"; Start-Sleep 3} `
-process {Get-WmiObject $_.name} `
-End {Write-Host "the Command completed at $(Get-Date)"}