how to run a ps1 file from cmd code example Example: cmd run ps1 file in background powershell.exe -windowstyle hidden -file C:\\iis_test.ps1