cmd.exe and powershell.exe PATH problems

#1
I am trying to run powershell.exe in the cmd.exe prompt.
error
The error that comes out is unrecognized command.
I go to System Properties -> Advanced -> Environmental Variables

Under System Variables I find the variable Path.
I add the path where the powershell.exe is.

Shouldn't this solve the problem?
Any suggests?

Thanks
 


Last edited:

Saltgrass

Excellent Member
Microsoft Community Contributor
#2
You don't want to run it by going to All Programs, Accessories, Windows Power Shell folder?
 


#3
I don't.

I want to run it within a programming language.

For example, if I call Python's subprocess, I want to run a Powershell command.
I would have to execute 'powershell' before the command is ran.
Powershell would be called in the 'cmd.exe'.
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.
Top