title: Can I pass a string of Python code vs a script path to C# Process?
body: <p>Can I pass a string of python code to C# Process vs a file path? StartInfo Arguments accept a file path but I would like to pass something like this :&quot;print('Hello, world!')&quot;</p>
  <pre><code>       var startInfo = new ProcessStartInfo(path to python)
          {
              // code
              Arguments = path to script
          };
  
          using (var process = new Process
          {
              StartInfo = startInfo
          })
          {
              try
              {
                  process.Start();
              }
          }
  </code></pre>