title: Controlling windows command line with python 3
body: <p>I would like to start a batch file and send commands to that commands line with python.</p>
  
  <p>I tried os module but I did only open windows command line. </p>
  
  <p>For example:</p>
  
  <pre><code>import os
  os.system('cmd')
  
  // and now in pseudo-code:
  cd to directory
  run batch file
  send commands to that command line
  </code></pre>