title: Executing a .CMD script from Control-M is not working
body: <p>We have a .CMD script that we are triggering from Control-M.</p>
  
  <p>A main.cmd is being called from Control-M.  This script is run as 'accnt_svc' service account which we also configured in Control-M.  Prior to setting up in Control-M, we testing this running fine when ran from command prompt (as administrator) and via Windows Task Scheduler being run as the 'acct_svc' service account.  </p>
  
  <p>When running in Control M, the log shows error saying a subscript (say sub.cmd is being called from main.cmd) saying the sub.cmd is invalid.  </p>
  
  <p>We checked the permissions and they both have the same settings.</p>
  
  <p>We tried another script, this time we created a wrapper which 'calls' the main script.  This worked fine.
  Please check following wrapper:</p>
  
  <pre><code>SET V_CMDDRV=E:
  %V_CMDDRV%
  CD %V_CMDDIR%
  CALL  CALL %V_CMDDIR%\main.cmd
  </code></pre>
  
  <p>When we create a Main_Wrapper.cmd calling the main.cmd this works fine.</p>
  
  <p>May I know why Control-M behaves this way?</p>
  
  <p>Thanks</p>