I had the same issue too. I tried both with the AHK I found in the folder and with an AHK I had created for my own setup, and it doesn't work. It loads all the modules and then closes. I also tried with a simple BAT file using the RPCS3 command lines.
If I launch it from the emulator's GUI, it works perfectly.