@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
c:/frp/frpc.exe -c c:/frp/frpc.ini
The part in red is your own command — please replace it with yours. The rest is for hiding the window.
Attachment: