title: The term 'nmake' is not recognized
body: <p>I do something wrong but I do not know what. I have a PowerShell script, where I have a variable like this:</p>
  
  <pre><code>$VCVARSALLBAT = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
  </code></pre>
  
  <p>Now, in this script I want to call this <code>vcvarsall.bat</code> doing this:</p>
  
  <pre><code>&amp; "$($VCVARSALLBAT)" x86_amd64
  </code></pre>
  
  <p>From the output I see, it ran. After calling <code>vcvarsall.bat</code>, I call <code>nmake</code>. </p>
  
  <p>I.e. my script looks like this:</p>
  
  <pre><code>$VCVARSALLBAT = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
  &amp; "$($VCVARSALLBAT)" x86_amd64
  nmake
  </code></pre>
  
  <p>I get this error message:</p>
  
  <pre>
  nmake : The term 'nmake' is not recognized as the name of a cmdlet, function,
  script file, or operable program. Check the spelling of the name, or if a path
  was included, verify that the path is correct and try again.
  At ...:214 char:1
  + nmake
  + ~~~~~
      + CategoryInfo          : ObjectNotFound: (nmake:String) [], ParentContainsErrorRecordException
      + FullyQualifiedErrorId : CommandNotFoundException
  </pre>
  
  <p>The odd thing is this: When I go into normal command line of Windows and calling the following statements, I can call <code>nmake</code> without errors:</p>
  
  <pre><code>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
  nmake
  </code></pre>