title: How do I get Visual Studio Developer Powershell working in Visual Studio Code's integrated terminal?
body: <p>I am trying to create a Visual Studio Developer Powershell profile for Visual Studio Code. Here is what I tried:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;Developer Powershell&quot;: {
      &quot;path&quot;: &quot;pwsh&quot;,
      &quot;args&quot;: [
          &quot;-noe&quot;,
          &quot;-c&quot;,
          &quot;\&quot;&amp;{$vsPath = &amp;(Join-Path ${env:ProgramFiles(x86)} '\\Microsoft Visual Studio\\Installer\\vswhere.exe') -property installationpath; Import-Module (Join-Path $vsPath 'Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll'); Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation}\&quot;&quot;
      ],
      &quot;icon&quot;: &quot;terminal-powershell&quot;
  }
  </code></pre>
  <p>I copied and pasted the arguments from my Windows Terminal profile, which works:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;commandline&quot;: &quot;pwsh.exe -noe -c \&quot;&amp;{$vsPath = &amp;(Join-Path ${env:ProgramFiles(x86)} '\\Microsoft Visual Studio\\Installer\\vswhere.exe') -property installationpath; Import-Module (Join-Path $vsPath 'Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll'); Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation}\&quot;&quot;,
      &quot;icon&quot;: &quot;C:\\powershell\\713\\assets\\Square44x44Logo.png&quot;,
      &quot;name&quot;: &quot;Developer PowerShell&quot;,
      &quot;startingDirectory&quot;: &quot;%USERPROFILE%&quot;,
  }
  </code></pre>
  <p>However, terminal output looks like this:</p>
  <pre><code>&amp;{ = &amp;(Join-Path C:\Program Files (x86) '\Microsoft Visual Studio\Installer\vswhere.exe') -property installationpath; Import-Module (Join-Path  'Common7\Tools\Microsoft.VisualStudio.DevShell.dll'); Enter-VsDevShell -VsInstallPath  -SkipAutomaticLocation}
    StaggoSTD   
  </code></pre>
  <p><em>Note: I am using Oh My Posh here. That's why the last line looks weird without a nerd font.</em></p>
  <p>So how do I make the Developer Powershell work? I tried using <code>powershell</code> instead of <code>pwsh</code> and removing the escaped double quotes but that did nothing.</p>