Opening PowerShell Script and hide Command Prompt, but not the GUI
<p>I currently open my PowerShell script through a .bat file. The script has a GUI. I tried to put this in my script but it hid the GUI as well and also kept looping because I wanted my GUI to continuously loop:</p>

<pre><code>powershell.exe -WindowStyle Hidden -file c:\script.ps1
</code></pre>

<p>How do we run a script without Command Promp, but also not hide the gui? And is that the same if we run the script using a .bat file? Thank you!</p>