I want to run power shell command on a simple console app.
I'm running on x64
platform.
As I'm running with AnyCpu
option it's not working.
I'm getting error pnputil : The term 'pnputil' is not recognized as the name of a cmdlet,
If i'm running with x64
option it's working.
How can I run the application so it'll work on platforms(e.g on x32 , x64)
Without specifying manually?
Thank You.
Edit:
I can solve it with something like this. but don't want as it's not safe.