title: VBScript to shutdown Windows when a process ends?
body: <p>I have a program that scans through data at the end of the night on some occasions.  On those occasions, I would like to run a VBScript that will watch for that program to close, and when it does, will shut down Windows.</p>
  
  <p>I created a .BAT file that runs the program and then shuts Windows down, but I don't always need to shutdown when I finish using the program.</p>
  
  <p>So I would like to use the scanning program, and if, at the end of the night, I am ready to leave, but the program is still scanning, I would to open the VBScript that will watch for my scanning program to close.</p>
  
  <p>Is this possible?</p>
  
  <pre><code>Windows 7 Ultimate
  x64 UAC = ON
  </code></pre>