Remove all group members Get-ADGroupMember "TESTGROUP" | ForEach-Object {Remove-ADGroupMember "TESTGROUP" $_ -Confirm:$false}
Add similar groups to one group get-adgroup -filter {name -like "group*end"} | ForEach-Object {Add-ADGroupMember -Identity "TESTGROUP" -Members $_}
Disable computer account based on name Get-ADComputer COMPUTERNAME | Disable-ADAccount