The output has to be a paired list, separated by comma.
Thus, the (single) ECHO command in the script should be:
WScript.Echo "clientserver,",client,",errorcode,",error
- clienserver is the first variable name, followed by "," as part of the string
- client is the value of the first variable
- errorcode is the second variable name, preceded and followed by "," as part of the string
- error is the value of the second variable
Per your example, the output of that line would be:
"clientserver,Server 2,errorcode,98"
Remove the two single output lines from your script, e.g.
WScript.Echo "clientserver,",client
WScript.Echo "errorcode,",error
MichaelBoehm