Start Powershell script from Batch

July 1, 2014

53 words, a 1 minutes read

Today, I’ll share a little code snippet with you that I use everyday:

@echo off
set script="ScriptsScript.ps1"

powershell.exe -NoProfile -File "%script%"

Since Powershell scripts don’t open right away when you click on them (for various reasons that are too long to discuss here, but make sense), this re-enables that feature with a workaround.