' Truly-hidden entry point for the NexusOS desktop shortcut. ' ' powershell.exe -WindowStyle Hidden is not enough on Windows 11: when Windows ' Terminal is the registered default terminal app, it intercepts console- ' subsystem processes before the hide flag applies, so a "NexusOS" terminal ' tab shows up anyway. wscript.exe is a GUI-subsystem host (unlike its sibling ' cscript.exe), so it never allocates a console in the first place and is not ' a candidate for that hijack - WScript.Shell.Run's own hidden window style ' (0) is then respected for the powershell.exe it launches. Dim fso, scriptDir, psPath, cmd Set fso = CreateObject("Scripting.FileSystemObject") scriptDir = fso.GetParentFolderName(WScript.ScriptFullName) psPath = fso.GetParentFolderName(scriptDir) & "\launch_nexus.ps1" cmd = "powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File """ & psPath & """" CreateObject("WScript.Shell").Run cmd, 0, False