title: How to call "NuGet.exe restore" from Jenkins Pipeline on Wndows?
body: <h3>What I want</h3>
  
  <p>calling the "NuGet.exe restore" from a batch step.</p>
  
  <h3>What I did before Jenkins 2.0</h3>
  
  <p>I added a Batch step and typed:</p>
  
  <pre><code>%WORKSPACE%/.nuget/NuGet.exe restore pathToSln
  </code></pre>
  
  <h3>What I do in Jenkins 2</h3>
  
  <pre><code>node('hudsoncsharp02') {
      stage('NuGet'){
          dir ('.nuget'){
              bat 'NuGet.exe restore'
          }
      }
  }
  </code></pre>
  
  <h3>Results in</h3>
  
  <pre><code>[Pipeline] node
  Running on hudsoncsharp02 in C:\xxxx\pipeline-git
  [Pipeline] {
  [Pipeline] stage
  [Pipeline] { (NuGet Restore)
  [Pipeline] dir
  Running in C:\xxxx\pipeline-git\.nuget
  [Pipeline] {
  [Pipeline] bat
  [.nuget] Running batch script
  
  C:\xxxx\pipeline-git\.nuget&gt;C:\xxxx\pipeline-git\.nuget\NuGet.exe restore 
  Der Befehl "C:\xxxx\pipeline-git\.nuget\NuGet.exe" ist entweder falsch geschrieben oder
  konnte nicht gefunden werden.
  </code></pre>
  
  <p>In English - the file NuGet.exe could not be found in the .nuget folder.</p>
  
  <p>But it is clearly there when browsing the workspace.</p>
  
  <h3>Questions</h3>
  
  <ul>
  <li>Do the bat steps get executed directly in the workspace or somewhere else, where relative paths wont work?
  
  <ul>
  <li>If they do get executed somewhere else. How do I call my NuGet.exe from there?</li>
  </ul></li>
  </ul>