Here is something similar to that which I use:
Code:
$sScriptPath=@SCRIPTDIR

$iIndex=0
$sGroup=EnumGroup($iIndex)
While Len($sGroup)
; Strip domain
If InStr($sGroup,"\") $sGroup=SubStr($sGroup,InStr($sGroup,"\")+1) EndIf
If Exist($sScriptPath+"\"+$sGroup+".kix")
"Calling login script for group "+$sGroup+@CRLF
Call $sScriptPath+"\"+$sGroup+".kix"
Else
"No login script for group "+$sGroup+@CRLF
EndIf
$iIndex=$iIndex+1
$sGroup=EnumGroup($iIndex)
Loop



You might also want to replace space characters in the group names with something a bit more handy, but it is not necessary.

Note, I strip off the domain name - you might want to leave it in place and store domain group scripts in a subdirectory.