title: Open and run commands on cmd from PowerShell
body: <p>A similar question was asked several times on SO, and usually the answer is one of:</p>
  
  <ul>
  <li>run the same command on PowerShell because it's also there</li>
  <li>run <code>cmd</code> and then the commands</li>
  <li>invoke <code>cmd</code> passing <code>/c</code></li>
  </ul>
  
  <p>and a few other things that I've already tried. But my problem is: I have a specific program (<code>cntkpy34.bat</code>) that <strong>refuses</strong> to run on PowerShell. That is, with any of solutions like above I still get "Please execute this script from inside a regular Windows command prompt."</p>
  
  <p>So what I <em>really</em> want is to invoke a new <code>cmd.exe</code> window and run the commands on it. How can this be achieved in a PowerShell script?</p>
  
  <p><strong>EDIT</strong>: inspecting the batch-file, this is how it verifies the shell:</p>
  
  <pre><code>if /I "%CMDCMDLINE%" neq ""%COMSPEC%" " (
      echo.
      echo Please execute this script from inside a regular Windows command prompt.
      echo.
      exit /b 0
  )
  </code></pre>
  
  <p>Even starting a new <code>cmd.exe</code> process won't do it.</p>