Powershell - GATHERS MEMBERSHIP OF GROUPS WITH 'Acme' IN THE NAME

#GATHERS MEMBERSHIP OF GROUPS WITH 'Acme' IN THE NAME

Get-QADMemberOf "Bugs Bunny" | select GroupName | where{$_.GroupName -match "Acme"}

OR

Get-QADMemberOf "Bugs Bunny" | where{$_.GroupName -match "Partner"} | Export-Csv c:\BBunny.csv -NoTypeInformation