I may be a bit late to this discussion and I agree with the others suggestions to change this to Kix only, but there is another way to pass info to the cmd shell from Kix...

First create your kix script. Below is my simple example.

csd.kix
Code:
  
$=setoption("ASCII","on")
@csd



Then add the following to your cmd script to set a variable to the output of the kix script.

Code:
 
@echo off
set csd=
for /f "tokens=*" %%i in ('kix32 csd.kix') do set csd=%%i
echo %csd%




To modify this to work with other kix scripts, you must prepend the line "$=setoption("ASCII","on")" to your kix script so that the script outputs ASCII characters to the console. And as another suggestion, only display one line of output per script.

Then its just a matter of modifying your cmd script to include the name of the kix script and the name of the variable you want to define.