jedione say it!
And with this plugin, you are able to start external scripts before emulator launch. and after emulator exit (if necessary).
I use this plugin for other purposes and testing with Ikaruga.before.bat works fine , but this scenario is a bit borderline because AM executes this command launching Ikaruga and then the "not working" command
Z:\attract-v2.6.1-win64\games\PC\Ikaruga>start "" "Game Loader All RH.exe"
execute -> "Z:\attract-v2.6.1-win64\extras\Pc\before.Ikaruga.bat" "Ikaruga" "Pc"
*** Running: cmd /c "games/PC/Ikaruga.bat"
The scope of this thread is helping users that try to run "gamewithnospace".bat with a configuration similar to the one i posted above. If it's not working, just add a space into game name "gamewithspace .bat"