From d637d22dae15189de92d1cb9cd73e1ee36237a8d Mon Sep 17 00:00:00 2001 From: HondomachiWang <109984030+HondomachiWang@users.noreply.github.com> Date: Sat, 29 Nov 2025 16:24:49 +0800 Subject: [PATCH] Add 'PowerShell.exe' to shell types mapping Adding compatibility for the "Activation script failed" error when running export.ps1 with a non-recommended version of PowerShell. --- tools/export_utils/shell_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/export_utils/shell_types.py b/tools/export_utils/shell_types.py index 81431c6f4..1ba1c7ac1 100644 --- a/tools/export_utils/shell_types.py +++ b/tools/export_utils/shell_types.py @@ -335,6 +335,7 @@ def spawn(self) -> None: 'nu': UnixShell, 'pwsh.exe': PowerShell, 'pwsh': PowerShell, + 'PowerShell.exe': PowerShell, 'powershell.exe': PowerShell, 'powershell': PowerShell, 'cmd.exe': WinCmd,