<h2 dir="auto">Summary of the new feature/enhancement</h2>
<p dir="auto">The Windows Terminal should support opening tabs from commands that come from outside its GUI. We should be able to run, for example, <code class="notranslate">Terminal --run powershell.exe --cwd c:\myproject</code>  from anywhere and a new tab would be added to the Terminal, current working directory would be <code class="notranslate">c:\myproject</code> and <code class="notranslate">powershell.exe</code> would be the shell. If the Terminal was not running, then it would start and create only that tab.</p>
<p dir="auto">My main use case for this is to use it with the Visual Studio extension <a href="https://marketplace.visualstudio.com/items?itemName=MadsKristensen.OpenCommandLine" rel="nofollow">Open Command Line</a>. I could then click on any directory on VS and ask it to open that directory on the new Terminal.</p>
<p dir="auto">Conemu already supports this with <code class="notranslate">-run</code>: <a href="https://conemu.github.io/en/ConEmuArgs.html" rel="nofollow">https://conemu.github.io/en/ConEmuArgs.html</a></p>
<p dir="auto">When Windows Terminal is installed on Windows 10, according to UWP package setting： <a href="https://github.com/microsoft/Terminal/blob/e37ba7a923427c9a874a6d5bdc27c80fe59db83c/src/cascadia/CascadiaPackage/Package.appxmanifest#L51">https://github.com/microsoft/Terminal/blob/e37ba7a923427c9a874a6d5bdc27c80fe59db83c/src/cascadia/CascadiaPackage/Package.appxmanifest#L51</a><br>
A ReparsePoint of type IO_REPARSE_TAG_APPEXECLINK is created in path <code class="notranslate">%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe</code> to start Windows Terminal. This is great, however, wt.exe should support richer command line arguments to enable third-party applications to open specific terminals.</p>