This worked
import-module ActiveDirectory cls write-output "This script adds the destination user to all the Groups which the source user is memberof." write-output " " write-output " " $SName = Read-Host "Please Enter the alias name of the source user " $DName = Read-Host "Please Enter the alias name of the Destination user " $DN = Get-ADUser $DName -Server DOMAINBDC $K = Get-ADUser -Identity $SName -Properties memberOf foreach($group in $K.memberof) { Add-ADGroupMember -Identity $group -Member $DN write-output $group }