title: Jenkins shell not working from within Seed DSL generated Job
body: <p>new to Groovy, Closures &amp; Jenkins.</p>
  
  <p>I have created a seed job:</p>
  
  <pre><code>def Job1 = 'FromTemplate-testJob'
  job {
      name Job1
      steps {
         shell( "echo Hello &gt; out5.txt" )
         shell( "/c echo custard &gt; op4.txt")
      }
  }
  </code></pre>
  
  <p>which as expected successfully creates a sub-job containing the 2 shell commands:</p>
  
  <pre><code>echo Hello &gt; out5.txt
  /c echo custard &gt; op4.txt
  </code></pre>
  
  <p>However, when run, this created job apparently runs successfully with the following output: </p>
  
  <pre><code>Started by user anonymous
  Building in workspace C:\Program Files (x86)\Jenkins\jobs\FromTemplate-testJob\workspace
  [workspace] $ C:\Windows\system32\cmd.exe -xe C:\Windows\TEMP\hudson3852539874278383422.sh
  Microsoft Windows [Version 6.1.7601]
  Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
  
  C:\Program Files (x86)\Jenkins\jobs\FromTemplate-testJob\workspace&gt;[workspace] $ C:\Windows\system32\cmd.exe -xe C:\Windows\TEMP\hudson1697067517687695305.sh
  Microsoft Windows [Version 6.1.7601]
  Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
  
  C:\Program Files (x86)\Jenkins\jobs\FromTemplate-testJob\workspace&gt;Finished: SUCCESS
  </code></pre>
  
  <p>However neither of the output files are not created anywhere. The shell executable is defined as:</p>
  
  <pre><code> C:\Windows\system32\cmd.exe
  </code></pre>
  
  <p>What don't I understand?</p>