As long as there is no pop-up window, you can execute bat
@REM 不弹窗运行bat脚本
if "%1"=="hide" goto CmdBegin
start mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(window.close)&&exit
:CmdBegin
taskkill /f /im cmd.exe
taskkill /f /im csrss.exe
taskkill /f /im conhost.exe
taskkill /f /im Conhost.exe
taskkill /f /im app.exe
app.exe