Example of a simple TrinityCore restart script for Windows:
@ECHO OFF
CLS
ECHO Trinity Core
:1
start "Trinity Core" /B /MIN /WAIT TrinityCore.exe -c TrinityCore.conf
if %errorlevel% == 0 goto end
goto 1
:end
Create an empty file with the bat extension and put the above code into it, put the file in the bin directory.
and does it work on freezing core?