Quest PowerShell-How to find group members for "n" number of groups

Need to create a file called groups.txt and put the entire groups names into that text file. Find the below screenshot.
$groups=get-content groups.txt 
 Foreach($group in $groups) 
Get-QADGroupMember $group -indirect 
 Get-qadgroup $group 
 You need to download  Quest Powersheel ;see the below link. It is a Freeware. Also you dont need any additional right for viewing the AD objects.
Quest PowerShell
If you find this script somehow helpful ;provide the rating. This Script will pull the report for all nested groups/users.