title: Run a windows command/script when a specific program opens/closes
body: <p>Is there a simple way to run a small command or batch script when a specific program opens or closes? I thought there might be a way to make it create a Windows event that I could then use as a trigger in the Task Scheduler, but I couldn't find any events for it.</p>
  
  <p>The program I'm trying to use as a trigger is VLC Media Player.</p>