query server for Shares then get groups and ADusers

HI im new to powershell and struggling i am trying to

I want to query a specific server  "blah.com" for a list of shares which begin with the name xx and from the shares get the AD groups that has access to those shares and from the ADgroups ideally i'd like username and email of the ADgroupmembers belonging to the groups

i started off with something like 

$Group=(Get-WmiObject -Class Win32_Share -ComputerName server1.blah.com |
 Where-Object Name -Like "xx-*" | Select-Object Name)

 $Groups = Get-ADGroup -Filter {name -like "blah-xx"} -server dc1.blah.com

ForEach-Object {$Group -like $Groups}

any help or examples someone could point me to would be appreciated