powershell run function in background code example Example: cmd run ps1 file in background powershell.exe -windowstyle hidden -file C:\\iis_test.ps1