Powershell - ADDING NUMEROUS MEMBERS TO DISTRIBUTION GROUP

#ADDING NUMEROUS MEMBERS TO DISTRIBUTION GROUP

$users = @(
"BBunny"
"TDevil"
)

$users | foreach {get-qaduser $_}


ForEach ($user in $users) {
Add-QADGroupMember $user -Identity (Get-QADGroup "The Acme Team")
}

OR

$users = @(
"BBunny"
"TDevil"
)

$users | foreach {get-qaduser $_}


ForEach ($user in $users) {
Add-DistributionGroupMember -Identity "The Acme Team" -Member $user
}