Using what was provided to me. How do I expand on this by using an input file to provide me what I need in bulk.
$GroupA = get-qadgroupmember 'cn=accounting users, OU=Department Groups, DC=domain, DC=com' -type user | select -expand property samaccountname
$GroupB = get-qadgroupmember 'cn=account users, OU=Department Groups, DC=NewDomain, DC=com' type user | select -expand property samaccountname
compare $GroupA $GroupB