I found this solution a while back by calling the PowerShell Script via a .VBS script. Not ideal but, it negates the window flash:

command = "powershell.exe -nologo -command C:\Scripts\YourScript.ps1"  
set shell = CreateObject("WScript.Shell")
shell.Run command,0

Schedule this .VBS in the task scheduler and it will call your script the same as before.

By admin

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.