fn detect_local_shell_path_windows() -> StringExpand description
Detect the best available interactive shell on Windows.
Mirrors the original Go logic from pkg/util/shellutil/shellutil.go DetectLocalShellPath():
- Try
pwsh(PowerShell 7 — cross-platform) - Try
powershell(Windows PowerShell 5.x) - Fall back to
cmd.exe