Unless I'm forgetting some macro or just zoned out (as it is 3:45am my time and I can't sleep), I think you just need to add a variable to the line in your batch file that starts your kix script. For example:

kix32 yourscript.kix $batch=%0

then in your kix script just write or display the $batch variable like normal. For example:

? "[" +$batch + "]"
_________________________
(... better days ahead)