Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9907

Powershell keeps opening spawning new window to run a command

$
0
0

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.exePS C:\Users\hardya>  ((Get-Command docker).definition)C:\Program Files\Docker\Docker\Resources\bin\docker.exePS C:\Users\hardya>  ((Get-Command kubectl).definition)C:\Program Files\Docker\Docker\Resources\bin\kubectl.exe

Viewing all articles
Browse latest Browse all 9907

Trending Articles