The following command will list all members of my GroupName group

We can filter out the results and just get the member name with this command

The last step is to export the results to a scv file

This is done by adding Export-csv to our above commands. The full command looks like this