title: Direct the command to a newly opened separate command prompt using bat file
body: <p>I have a command prompt shortcut that run a bat file when it's launched. Once it is launched I will issue another command,say my_command, which is added as doskey macro in <code>login.bat</code></p>
  
  <p>The flow is somewhat like this.</p>
  
  <p>I have a cmd shortcut with target set as:</p>
  
  <pre><code>C:\Windows\System32\cmd.exe /k "D:\\login.bat"
  </code></pre>
  
  <p>where <code>login.bat</code> sets the environment.</p>
  
  <p>Once the cmd prompt is active I should issue another command, say <code>my_command</code> (which should be run in the currently open cmd prompt)</p>
  
  <p>Inside <code>login.bat</code> I have the following lines</p>
  
  <pre><code>...
  doskey my_command=another_login.bat DEBUG 32
  </code></pre>
  
  <p>I was trying to write a bat file to do the whole thing.</p>
  
  <p>I am not supposed to change <code>login.bat</code></p>
  
  <p>What I tried is :</p>
  
  <pre><code>start C:\Windows\System32\cmd.exe /k "D:\\login.bat"
  my_command
  </code></pre>
  
  <p>The command <code>my_command</code> gets run on the bat file's command prompt.</p>
  
  <p>How do I make the command <code>my_commnad</code> run on the newly opened command prompt and not in the bat file's cmd prompt?</p>