title: Use a keyboard shortcut to open and close batch file program
body: <p>Im super new to programming, falling in and out from time to time. But once in a blue moon, I want to add functionality to my keyboard, in attempt to make my life a little easier. So what I want to do, is <kbd>ALT</kbd> + <kbd>NumPad x</kbd> to start a program, and if that program is open when <kbd>ALT</kbd> + <kbd>NumPad x</kbd> is pressed, close the program. </p>
  
  <pre><code>set program1="chrome"
  start %program1%
  </code></pre>
  
  <p>That will open the program, but what should I do to close it? Make a variable program'x'open = true/false/ if true call a function to close, else nothing? Im stuck on the close program part.</p>