I think one "cookie1" command is ok. after this command line, the "Exit" is not really necessary...
U can run your script in debug mode by adding "/d". For example :
%0\..\Kix32.exe script.kix /d
if the script is ok, then the problem doesn't come from there...