I'm trying to identify and delete old discovery profiles using SwisVerb...I have more powershell experience than SWIS / SWQL and I feel like this should work, but maybe swisverb arguments won't take piped input? How would you do this?
$oldprofiles =Get-SwisData $swis "SELECT top 2 ProfileID from Orion.discoveryprofiles order by name ASC"
$oldprofiles | Invoke-SwisVerb $swis -EntityName Orion.discovery -Verb DeleteDiscoveryProfile -Arguments @("$_.")