title: Run a python script in virtual environment from windows task scheduler
body: <p>I'm trying to set up a recurring Python task through windows task scheduler.</p>
  
  <p>I have had success when I input the path to 'python.exe' and provide the script's path as a parameter to windows task scheduler (see screenshot below) </p>
  
  <p><a href="https://i.stack.imgur.com/z3VX8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/z3VX8.png" alt="windows task scheduler"></a></p>
  
  <p>However, I want to be able to choose a particular virtual environment in which to run the script.  I don't have much knowledge of venv, and I typically use it by opening cmd and running Scripts\activate.bat in the desired virtual environment directory. </p>
  
  <p>How can I accomplish 'run task x in venvxxx every 24 hours' using windows task scheduler?</p>