powershell script running in background code example Example: run powershell script in background Powershell.exe -windowstyle hidden -file C:\iis_test.ps1