Open up a command window and run the script with KiX32. The DOS window should still stay open and you will be able to read the error message.