title: WScript.Sleep() ~ WSScript is undefined
body: <p>I'm trying to follow some example code from microsofts mdn site..</p>
  
  <pre><code>var WshShell = new ActiveXObject("WScript.Shell");
  var oExec = WshShell.Exec("calc");
  
  while (oExec.Status == 0)
  {
       WScript.Sleep(100);
  }
  
  WScript.Echo(oExec.Status);
  </code></pre>
  
  <p>I'm currently writing a javascript/JScript to run a few batch commands. Everything works fine if I don't use WScript.Sleep(). However, If i try to use it, to prevent locking up the browser, i'm getting an error that WScript is not defined.</p>
  
  <p>I figured that I needed to define it myself. However, I have been searching mdn website all day with no luck. This is my first time using any "windows only" products I could be coompletly overlooking something.</p>
  
  <p>If you want to see the documentation I'm looking through it is located here.
  <a href="http://msdn.microsoft.com/en-us/library/ateytk4a(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ateytk4a(v=vs.85).aspx</a></p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>Thanks,
  Freddy</p>