Skip to content
mnaoumov.dev
Go back

Execute PowerShell command from batch file

MyBatch.cmd

PowerShell -Command "& { /\* Insert your command here \*/ }"

NOTE that inside command you have to escape quote character () with backslash (\)

PowerShell -Command "& { \"\" -eq [string]::Empty }"

Share this post on:

Previous Post
where.exe
Next Post
FireBug DOM inspection