I'm not a big windows user / developer, but perhaps a batch script that callas lua.exe for your script and then uses the command 'pause'?