title: How send a command to command prompt from a console application
body: <p>I have a console application project. In the application I need to start the command prompt and pass an argument to the command prompt.</p>
  
  <p>I have tried</p>
  
  <pre><code>    System.Diagnostics.Process.Start("cmd", "shutdown -s");
  </code></pre>
  
  <p>but it does nothing but just starts the command prompt</p>
  
  <p>What I want to do is start the command prompt and pass this argument to the command prompt</p>
  
  <pre><code>    "shutdown -s"
  </code></pre>
  
  <p>How do I do that?.</p>