$user = “mydomain\user1”
if ((Get-QADUser $User -Properties memberof).memberof -like “CN=finance-group*”)
{
write-host “User found” $true
}
Else
{
write-host “User found” $false
}