title: Jenkins Slave on Windows
body: <p>I have a new requirement to configure a Windows 10 VM as Jenkins Slave and run certain python scripts.
  I am currently using multi-branch pipeline and use Jenkins file to define different stages.</p>
  <p><strong>Issue :</strong> Jenkins is not able to recognize where python is :
  F:\Jenkins\workspace\test&gt;python --version<br />
  Python was not found but can be installed from the Microsoft Store: <a href="https://go.microsoft.com/fwlink?linkID=2082640" rel="nofollow noreferrer">https://go.microsoft.com/fwlink?linkID=2082640</a></p>
  <p>Python works from the command line but not from Jenkins..
  F:\Jenkins\workspace\test&gt;python --version
  Python 3.8.5</p>
  <p>I tried defining PYTHONPATH variable in the manage node section of Jenkins ( Under the windows configuration ), but it is still not able to recognize it.</p>
  <p>any suggestions ??</p>
  <pre><code>jenkinsfile : 
   stage('Lint') {
              steps {
                  script {
                      bat '''
                        python --version
                        // C:\Python\python.exe --version  
                        // Tried to run the executable but no luck 
                        '''
                  }
  </code></pre>