This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Description
For CI testing Windows in minikube we SSH into a Windows machine, which starts us in Command Prompt. We then run powershell to change the terminal to Powershell. However, within the Powershell terminal the SHELL environment variable is still pointing to Command Prompt (c:\windows\system32\cmd.exe). So when running the exported function shell.Detect here it returns cmd instead of the expected powershell.