ok. but for the script to work, it will have to determine if it needs to create the group or just copy the members over.

So is there some way of knowing, given a current group, what the new group is called? Your text file seems to only contain the current groups and not their newly created counter-parts.

Enumerating a group and copying its members to another group is easy, but as of now i'm confused on how to determine what the new group is.