Something like..
$groups = "GroupA", "GroupB", "GroupC"
ForEach ($group in $groups) {
Get-ADGroupMember $group |
Where-Object {$_.objectClass -eq 'Group'} |
Select-Object @{name="Group";expression={$group}}, @{name="Embedded Group";expression={$_.Name}}
}