say i just want to call an empty array at start; one that the number of elements it will hold is relavant to the the number of extra users in the local administrators group. how do i assign all of those excess account names to a that inital array so i can loop through them at the end to get them all on a single line when i write them to an output file?? This is what I've tried thus far.

Code:
$AllowedGroups	= "Administrator","Domain Admins"
$NetworkServer = "\\LogServer"
$NetworkShare = "ScriptLog"
$OutputFile = 'Unauthorized Accounts in local Administrators Group.log'
$handle = 1
$count = 0

Dim $unauthAccounts[]

;Attempt to account for file locking to write to one output file
$ = Open($handle,$NetworkServer+'\'+$NetworkShare+'\'+$OutputFile,5)
While @ERROR = -3 AND $count < 100
$ = Open($handle,$NetworkServer+'\'+$NetworkShare+'\'+$OutputFile,5)
If $handle = 10
$handle = 1
Else
$handle = $handle + 1
Endif
$count = $count + 1
Loop


$objComputer = GetObject("WinNT://"+@WKSTA)
$objComputer.Filter = "Group",""
For Each $objGroup in $objComputer
$Group = GetObject("WinNT://"+@WKSTA+"/"+$objGroup.Name)
If $objGroup.Name = 'Administrators'
For Each $Member in $Group.Members
If AScan($AllowedGroups,$objUser.Name) = -1
$unauthAccounts = $Member.Name
Endif
Next
; just trying to see if i'm even writing the correct info the the temp array
for each $x in $unauthAccounts
? $x
next
;$ = WriteLine($handle,@WKSTA+', '+$objUser.Name+', '+@DATE+', '+@TIME+@CRLF)
Endif
Next


$ = Close($handle)

'done'
get $



now i know i'm doing this wrong but how do you do it?