I have a powershell script that I'd like to run every 30 minutes in the background. To do this I've created a scheduled task that executes the script. However, when it runs it quickly flashes the powershell window.
The command I use in the scheduled task is :
powershell.exe -NoLogo Noprofile -WindowStyle Hidden -ExecutionPolicy Bypass -Command "& {D:\script.ps1}"
Is there a way to schedule this script in a way that it doesn't flash the powershell window?