diff --git a/commands/env.go b/commands/env.go index 9545d19d22..79059c7c12 100644 --- a/commands/env.go +++ b/commands/env.go @@ -188,9 +188,9 @@ func generateUsageHint(appName, machineName, userShell string) string { } case "powershell": if machineName != "" { - cmd = fmt.Sprintf("%s env %s | Invoke-Expression", appName, machineName) + cmd = fmt.Sprintf("%s env --shell=powershell %s | Invoke-Expression", appName, machineName) } else { - cmd = fmt.Sprintf("Param(%s env)", appName) + cmd = fmt.Sprintf("%s env --shell=powershell | Invoke-Expression", appName) } case "cmd": cmd = "copy and paste the above values into your command prompt"