title: I get a can't execute binary file error when running a bash command from C#
body: <p>I've created a Discord Bot with which you can interact (running on a Raspberry Pi with a default Raspberry Pi OS). I also added a command to execute a shell command. My code:</p>
  <pre class="lang-cs prettyprint-override"><code>        ProcessStartInfo inf = new()
          {
                CreateNoWindow = true,
                RedirectStandardError = true,
                RedirectStandardOutput = true,
                RedirectStandardInput = true,
                FileName = &quot;/bin/bash&quot;,
                Arguments = command,
          };
          if (Process.Start(inf) is Process cmd)
          {
                  string ret = &quot;Output: &quot; + await cmd.StandardOutput.ReadToEndAsync();
                  ret += &quot;\nError Output: &quot; + await cmd.StandardError.ReadToEndAsync();
                  await Program.Log(ret);
                  return ret;
          }
  </code></pre>
  <p>When I set command to &quot;echo Hello, World!&quot; I just get the error</p>
  <blockquote>
  <p>/usr/bin/echo: /usr/bin/echo: cannot execute binary file</p>
  </blockquote>
  <p>from the StandardOutput.
  What am I doing wrong?</p>