package main const ( // Shell constants commandPrompt = "C:\\Windows\\System32\\cmd.exe" powerShell = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" ) func GetSystemShell() string { if exists(powerShell) { return powerShell } return commandPrompt }