title: Running string as a Batch file in c#
body: <p>I'm writing an application that creates a batch file and then run :</p>
  
  <p>I know I can create a Batch file and <a href="https://stackoverflow.com/questions/5519328/executing-batch-file-in-c-sharp">run it</a>
   no problem with that .</p>
  
  <p>What I want to do is :
  once I have created the string that makes the file , Is there is any way to execute the <strong>string</strong> as a Batch file ? 
  something like </p>
  
  <pre><code>string BatchFile = "echo \"bla bla\" \n iperf -c 123  ... ... .. "
  Diagnostics.Process.Start(BatchFile);
  </code></pre>