Just a little more info: NASERVER.TXT is just a text file with a list of server names for the script to use.

I'd like to have an output file that is comma delimited, but not sure how to get one long string before issueing the return command.

Ex. WriteLine( 2 , '"Server Name","$Keyname","$Keyname2","$Keyname3","$Keyname4", "$Keyname5"' + Chr(13) + Chr(10) )

I can't really number the $KeyName variables, because they're might not always be the same number of them. Thanks!