Thanks Bryce,
do I understand this correctly that in the top line I define the Domain and the group I want to list the members of ?

Function Groupmembers("MyDomain","MyGroup")

Or is this script only a part of another script that is giving the Domain and group as $target and $group to that Function, and the function returns one group member ?

If so what would be the name of the returned string ?