Windows batch files run in the background and require a piece of code to be added to the header.
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
::here are your codes below