First of all, I'm much more comfortable with Bash then I am with CMD \ Powershell.
How do I stop Powershell opening \ running commands in a new window, which closes as soon as it's finished, meaning I'm unable to see the output?
I'm currently running through some tutorials on Kubernetes, and the person is running kubectl and minikube, in powershell, and I'm unable to replicate \ troubleshoot anything as it opening the same commands in a new window, before closing them on completion or error. I've had these sorts of issues before running powershell and I've ended up using Linux VM's in order to get to bash instead.
EDIT - Running the Get-Command as requested returns
PS C:\Users\hardya> ((Get-Command minikube).definition)
C:\PATH\minikube.exe
PS C:\Users\hardya> ((Get-Command docker).definition)
C:\Program Files\Docker\Docker\Resources\bin\docker.exe
PS C:\Users\hardya> ((Get-Command kubectl).definition)
C:\Program Files\Docker\Docker\Resources\bin\kubectl.exe
cmd.exe
unless you or your command calls cmd.exe explicitly(Get-Command prompt).definition
)(Get-Command prompt).definition
is likeecho $PS1
in Linux, notwhich
(which iswhere.exe
), so if it has suspect commands then those will be run every time you execute a commandnslookup.exe
on Windows doesn't open another window), else I'd post an answer explaining this.