title: Start NodeJS Application from C# web Form Application
body: <p>I have built MeteroJS application that I want to start as NodeJS application from C# code.</p>
  
  <p>Here is Windows Form application that is used as control panel for starting and stopping the NodeJS application </p>
  
  <p><a href="https://i.stack.imgur.com/2RFtO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2RFtO.png" alt="enter image description here"></a> </p>
  
  <p>I can start NodeJS application manually with command line: <strong>(this works!)</strong></p>
  
  <pre><code>set MONGO_URL=mongodb://someAdmin:password@localhost:27017/some_db
  set ROOT_URL=http://someservice:8080
  set PORT=8080
  node bundle\main.js
  </code></pre>
  
  <p>I want to repeat all action above from command line, this time inside C# application.</p>
  
  <p>This is code that executes on Start button click: </p>
  
  <pre><code>Environment.SetEnvironmentVariable("MONGO_URL", String.Format("mongodb://{0}:{1}@localhost:27017/{2}", usernameTxt.Text, passwordTxt.Text, databaseTxt.Text), EnvironmentVariableTarget.Machine);
  Environment.SetEnvironmentVariable("ROOT_URL", String.Format("http://someservice:{0}", portTxt.Text), EnvironmentVariableTarget.Machine);
  Environment.SetEnvironmentVariable("PORT", portTxt.Text, EnvironmentVariableTarget.Machine);
  
  Process.Start("CMD.exe", @"/C node bundle\main.js");
  </code></pre>
  
  <p>I am not sure if this is even possible. This simply does not work and left no logs. 
  Could you please check what I am doing wrong and advise.</p>