title: How to hide the PowerShell window when running a .ps1 script in Task Scheduler?
body: <p>I am trying to run a PowerShell script using Task Scheduler and it pops up a PowerShell command console window.</p>
  <p>Is there a way to disable this while running the script and hide the window?</p>
  <p>I've tried <code>-WindowStyle Hidden</code> but the PowerShell command console window still pops up.</p>