<p dir="auto">Is it possible to open the Terminal and run an executable via a batch file?<br>
Or at least set the Terminal as default for <code class="notranslate">bat</code>/<code class="notranslate">ps1</code> files.</p>
<p dir="auto">Something like this <code class="notranslate">Run.bat</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wt.exe myConsoleApp.exe"><pre class="notranslate"><code class="notranslate">wt.exe myConsoleApp.exe
</code></pre></div>
<p dir="auto">Which opens the Terminal and executes the <code class="notranslate">MyConsoleApp.exe</code></p>
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">The latest version of Docker for Windows is adding a WSL2-based backend powered by a series of service machines. Terminal currently discovers these and adds them as options that the user can select. These should probably be blacklisted from being presented to the user in the short-term. I imagine a better long-term solution is for WSL2 to be able to use metadata to differentiate service-machines from user-created machines that I might want to log into.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8700322/68788886-4bda5800-0612-11ea-8016-13a803b97f08.png"><img src="https://user-images.githubusercontent.com/8700322/68788886-4bda5800-0612-11ea-8016-13a803b97f08.png" alt="image" style="max-width: 100%;"></a></p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  [
  ...
        {
            &quot;guid&quot;: &quot;{d8afdc0e-a636-5b68-89dd-50a9d0b54349}&quot;,
            &quot;hidden&quot;: false,
            &quot;name&quot;: &quot;docker-desktop-data&quot;,
            &quot;source&quot;: &quot;Windows.Terminal.Wsl&quot;
        },
        {
            &quot;guid&quot;: &quot;{570fcb8d-792c-5ac7-ab1f-5cfb2cdfdb99}&quot;,
            &quot;hidden&quot;: false,
            &quot;name&quot;: &quot;docker-desktop&quot;,
            &quot;source&quot;: &quot;Windows.Terminal.Wsl&quot;
        }
  ],"><pre class="notranslate">  [
  <span class="pl-ii">...</span>
        {
            <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{d8afdc0e-a636-5b68-89dd-50a9d0b54349}<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"hidden"</span>: <span class="pl-c1">false</span>,
            <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>docker-desktop-data<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"source"</span>: <span class="pl-s"><span class="pl-pds">"</span>Windows.Terminal.Wsl<span class="pl-pds">"</span></span>
        },
        {
            <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{570fcb8d-792c-5ac7-ab1f-5cfb2cdfdb99}<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"hidden"</span>: <span class="pl-c1">false</span>,
            <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>docker-desktop<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"source"</span>: <span class="pl-s"><span class="pl-pds">"</span>Windows.Terminal.Wsl<span class="pl-pds">"</span></span>
        }
  ],</pre></div>

<h1 dir="auto">Proposed technical implementation details (optional)</h1>