title: How can you execute python terminal command using a Windows Batch script?
body: <p>So using Windows batch scripting I know we can open the python interpreter as follows and execute a python script:</p>
  
  <pre><code>c:\python27\python.exe c:\documents\python_script.py
  </code></pre>
  
  <p>In turn, I know it is possible to just open the python interpreter just by typing:</p>
  
  <pre><code>c:\python27\python.exe
  </code></pre>
  
  <p>However, using a batch script is it possible to "communicate" with the python interpreter and send it commands to execute ie:</p>
  
  <pre><code>c:\python27\python.exe import os
  </code></pre>
  
  <p>and then to exit from the interpreter as such:</p>
  
  <pre><code>c:\python27\python.exe exit()
  </code></pre>
  
  <p>Any insight would be kindly appreciated.</p>
  
  <p>Thankyou</p>