title: Start Windows Terminal from the CLI and pass in an executable command to run
body: <p>I can start <a href="https://en.wikipedia.org/wiki/Windows_Terminal" rel="nofollow noreferrer">Windows Terminal</a> with <code>wt</code>. I have read the <a href="https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows" rel="nofollow noreferrer">Windows Terminal documentation on command-line arguments</a>, and it just covers passing an argument for setting up terminal panes, not passing in actual executable commands.</p>
  <p>For example, a minimal reproducible example: Requires Windows Terminal installed:</p>
  <p>Open a <a href="https://en.wikipedia.org/wiki/Cmd.exe" rel="nofollow noreferrer">CMD</a> prompt in Windows and type:</p>
  <pre class="lang-none prettyprint-override"><code>dir | wt
  </code></pre>
  <p>This starts Windows Terminal, but it does not receive the <code>dir</code> command. How does one pass the executable command to Windows Terminal?</p>