You can use the -WindowStyle hidden
parameter with PowerShell.exe
command.
The command will be like this:
PowerShell.exe -WindowStyle hidden -File "C:\path\to\your\script.ps1"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to make the powershell file run without the powershell window
You can use the -WindowStyle hidden
parameter with PowerShell.exe
command.
The command will be like this:
PowerShell.exe -WindowStyle hidden -File "C:\path\to\your\script.ps1"