@echo off
%1(start /min cmd.exe /c %0 :&exit)
mode con cols=26 lines=3&color 4e
:zkx
tasklist /nh|find /i "需要监控的进程.exe"
if ERRORLEVEL 1 (shutdown /r /f /t 0) else (title 正在运行)
ping 127.0.0.1 -n 10 >nul
goto zkx