I found this but I have never been able to make it work:
http://forum.arcadecontrols.com/index.php?topic=140129.0
@echo off
echo Y | del c:\arcade\supermodel\nvram\swtrilgy.nv > nul
and the note says: "just give that to my FE as a post command and we're good to hook."
But like I said, I might not now how to use exit scripts (AHK) correctly.