This will set the variable $sMyVar in your script:
Code:
kix32.exe myscript.kix $sMyVar="old"