title: Jenkins Pipeline cannot execute SH command file in a Windows slave
body: <p>I'm executing this code:</p>
  
  <pre><code>node('my_windows_slave') {
     sh 'ls'
  }
  </code></pre>
  
  <p>In my Windows slave I can properly execute <code>sh</code> command:</p>
  
  <p><a href="https://i.stack.imgur.com/zDxb0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zDxb0.png" alt="enter image description here"></a></p>
  
  <p>But the pipeline script can't run the <code>.sh</code> file:</p>
  
  <pre><code>[Pipeline] sh
  [D:\workspace\sandbox_pipeline] Running shell script
  sh: D:\workspace\sandbox_pipeline@tmp\durable-2d7dd2f8\script.sh: command not found
  </code></pre>
  
  <p>What I could notice is that this <code>.sh</code> file is not even created, once I tried with <code>bat</code> and worked fined.</p>
  
  <p>Any clue what could be the problem?</p>
  
  <p>[UPDATE]</p>
  
  <p>Jenkins somehow can't create the <code>SH</code> temporary file. Already checked the log, permissions, everything that came to my mind.</p>