title: Lua (Command Line) remain open after execution
body: <p>I have searched far and wide for this but I cannot seem to find it.  Is there any way to execute a <code>Lua</code> script via double clicking it (to execute it in <code>Lua (Command Line)</code>) and keep it open after execution?</p>
  
  <p>For example:</p>
  
  <pre><code>print("Hello World")
  </code></pre>
  
  <p>This code compiles and runs, however if I double click on <code>hello.lua</code>it runs and closes immediately without leaving my text on screen.  I want something more like this, but without having to go to <code>Command Prompt</code>, changing directory a bunch of times, typing <code>lua file.lua</code>, etc.:</p>
  
  <p><img src="https://i.stack.imgur.com/udMFz.jpg" alt="Command Prompt"></p>