Is there a powershell script that will allow me to get a list of members in a SharePoint team site including their email address? I found this but I don’t know how to add script to get the email addresses
Each time someone creates a team site it automatically creates an o365 group for that site and which has all the members and stays up to date with changes. Check out this site for a powershell script to list o365 groups and members of those groups.