Inspired by @user10249692 I wrote a generic "hidden start" AutoHotKey script hstart.ahk:
; Abstract: hidden start
; start an application with a hidden window
;
; Usage: hstart [-d] <app> [<arg1>...<argn>]
;
; -d shows the Run command argument and does not hide the app's window
;
; 2025 Jan 2 jhm original creation
;
#NoTrayIcon
if (a_args[1] = "-d") {
debug := 1
runOption := ""
a_args.RemoveAt(1)
} else {
debug := 0
runOption = "Hide"
}
if (!FileExist(a_args[1])) {
MsgBox, % a_args[1] . " file does not exist"
exit
}
if (debug) {
MsgBox, % Join(" ",a_args*)
}
Run, % Join(" ",a_args*),,% runOption
exit
Join(sep, params*) {
for index,param in params
str .= param . sep
return SubStr(str, 1, -StrLen(sep))
}
Consider using the AutoHotKey ahk2exe compiler to add hstart.exe to your utility bin!