How to execute a .Bat with mutliple Parameters from Powershell scripts

Question:

how do I execue a .bat from a powershell script.

I want to do something like:

Thank you

Answer:

You can call

In powershell V3 there is a new espace string –% which allow to send “weird” parameters to your exes.
exemple :

Source:

How to execute a .Bat with mutliple Parameters from Powershell scripts by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply