While Doc is sorting out your code, I'd like to make a couple of suggestions too:

1. The disclaim.kix and w2w.scr could be just incorporated into your main script too, totally avoiding the calls. This is a purely a preference on your part if you want to do it that way though.

2. While you are learning, you might also do yourself a favor and look through all the pre-made User Defined Functions (UDFs). I can promise you the time spent there looking through them will make you realize how much more stuff you can be doing in your script, and the best part... someone else has already done the hard work. See them here:
http://www.kixtart.org/UDF

3. Your bat file can be replaced with kix code. Unfortunately I don't have time to throw the code together for you, but ArrayEnumKey and ArrayEnumValue will do most of the work for you. I would also bet there are a number of examples on the board for software inventories etc.