title: Cannot schedule a python script to run through Windows Task Scheduler
body: <p>I have set up my windows task scheduler to create a task to run a python script that will send out an email to a few people (including myself).</p>
  
  <p>I added the location the location of my Python in the actions tab in Program/script</p>
  
  <pre><code>C:\Users\User\AppData\Local\Programs\Python\Python37\python.exe
  </code></pre>
  
  <p>I added my python file as an argument
  and the path to the file as Start in:</p>
  
  <pre><code>C:\Users\User\Documents\GitHub\automation
  </code></pre>
  
  <p>However when I run the script (I am testing it by running it every 5 minutes for 15 minutes). Python.exe opens up briefly but the emails in my python script are not sent, which means the script isn't running. I have tested my code several times and know that it works.</p>