When you're launching something in Mala, an emulator or bat or whatever, Mala waits for it to close to resume. When you launch a bat, it does it's thing and closes, then Mala wants to resume even though you don't want it to. Have your bat file or ahk script launch your executable and wait for it to close before finishing.