title: run bash command from .NetCore with arguments
body: <p>I am trying to run one .NetCore program from another.</p>
  
  <pre><code>        ProcessStartInfo psi = new ProcessStartInfo();
          psi.FileName = "sh";
          psi.Arguments = "-c dotnet /home/myuser/PublishOutput/myprogram.dll";
          psi.UseShellExecute = false;
          psi.RedirectStandardOutput = true;
          psi.RedirectStandardError = true;
  
          Process proc = new Process
          {
              StartInfo = psi
          };
  
  
          proc.Start();
  
          string error = proc.StandardError.ReadToEnd();
  
          if (!string.IsNullOrEmpty(error))
              return "error: " + error;
  
          string output = proc.StandardOutput.ReadToEnd();
  
          proc.WaitForExit();
  
          return output;
  </code></pre>
  
  <p>As output I get:</p>
  
  <blockquote>
    <p>Microsoft .NET Core Shared Framework Host</p>
    
    <p>Version  : 1.1.0   Build    :
    928f77c4bc3f49d892459992fb6e1d5542cb5e86</p>
    
    <p>Usage: dotnet [common-options] [[options] path-to-application]</p>
    
    <p>Common Options:   --help                           Display .NET Core
    Shared Framework Host help.   --version                        Display
    .NET Core Shared Framework Host version.</p>
    
    <p>Options:   --fx-version            Version of the installed
    Shared Framework to use to run the application.<br>
    --additionalprobingpath    Path containing probing policy and assemblies to probe for.</p>
    
    <p>Path to Application:   The path to a .NET Core managed application,
    dll or exe file to execute.</p>
    
    <p>If you are debugging the Shared Framework Host, set 'COREHOST_TRACE'
    to '1' in your environment.</p>
    
    <p>To get started on developing applications for .NET Core, install the
    SDK from:   <a href="http://go.microsoft.com/fwlink/?LinkID=798306&amp;clcid=0x409" rel="noreferrer">http://go.microsoft.com/fwlink/?LinkID=798306&amp;clcid=0x409</a></p>
  </blockquote>
  
  <p>So I seems exacly like run command <em>dotnet</em> with no dll path argument.</p>