When I execute the sample program via the DOS shell or via the run as script menu item, it works just fine. My problem occurs when I try to run it via the F10 (MacroExecuteScript) key. When I enter the name of the script file (containing the sample program), I get the result shown previously.

I still have LUA set as my active scripting language - I don't need to change that, do I?