I got it working with "bulletinfarmwithmodwriterclosestats.ahk", I ran the script, and after it created the "personalscript" I ran that with the 30 min for testing and it worked.
If I leave the CoH2 window on screen(I leave the game open during night) The script doesn't click the quit match button at the end of the 1 hour game. But I've seen no problem when I'm using the PC and the game is minimized.
Edit:
I tried option 1 and same result. If I move the mouse over the quit match button it clicks automatically.