title: jenkins pipeline sh not working for few commands
body: <p>I am trying to run the following command to scan dotnet core project using sonarqube in Jenkins pipeline</p>
  
  <pre><code>    sh "dotnet sonarscanner begin /k:projectkey1"
      sh "dotnet build"
      sh "dotnet sonarscanner end"
  </code></pre>
  
  <p>Gives me the following error</p>
  
  <pre><code>    + dotnet sonarscanner begin /k:projectkey1
      No executable found matching command "dotnet-sonarscanner"
  </code></pre>
  
  <p>I can login to the same server as user jenkins and run the same command without any issues. 
  Please help</p>