I would like to run powershell with a hidden window.
I use this script but the window still appear:
powershell.exe -ExecutionPolicy ByPass -WindowStyle Hidden -NonInteractive -NoLogo -File "C:\test.ps1"
How can I modify the code to run powershell without window?