How run run script running as user with hidden Window?

Hi all

I have a script running via scheduled task under the user context.

When it runs at log in the window appears for a second or so.

Even though I have used -Noninteractive -WindowStyle Hidden

Is there a way around this…?

Scripts ran as system are truly hidden

Have you tried PS Jobs? I never notice when they run.

Found a solution…to launch via vbs.

command = "powershell.exe -nologo -ExecutionPolicy Unrestricted -File C:\script.ps1"
set shell = CreateObject("WScript.Shell")
shell.Run command,0