how about this udf GroupAdd()

example...
Code:

$target = @DOMAIN + '/' + @WKSTA
$ = groupadd($target,'administrators',@DOMAIN + '\Domain Users')