get-aduser test10 -Properties memberof | %{$_.memberof} | Remove-ADGroupMember -Members test10 -Confirm:$false