title: "The term '-Command' is not recognized as the name of a cmdlet" when trying to execute an inline command in PowerShell Core on Ubuntu
body: <p>I'm trying to execute an inline command in PowerShell Core (6.2.3) on Ubuntu.</p>
  
  <p>This throws an error:</p>
  
  <pre><code>pwsh -Command "Write-Host 'Hello, world'"
  </code></pre>
  
  <blockquote>
    <p>-Command : The term '-Command' is not recognized as the name of a cmdlet, function, script file, or operable program.</p>
  </blockquote>
  
  <p>I installed PowerShell as a dotnet core global tool if that makes a difference.</p>