I have a list of Ids in the $netid variable from the below powershell script:
$netid =Get-ADGroupMember ADGROUPSAMPLE1 | select accountname
W