I'm running that script just to figure out how I can make use of the enumerated groups. What I want is when a user logs on, the groups containing a certain word are shown, then a user can make his selection which one he wants to start... So I thought:

for each $group in $admingroups
? $group.name
Get $x
? users selection is $admingroups[$x]

and then something like:
net use g: \\server\$admingroup[$x]


Must be possible somehow...