A simple shutdown script needed

Hello, I would like to request a simple script that will automatically shutdown the game.exe but the script should be called from an event before executing the shutdown process.

Thanks in advance!
You don't need a script for this.


You can either use the Return to Title Screen event command if you want to go back to the menu, or if you want to actually shut down altogether, do a Call Script with SceneManager.exit
Oh, didn't know that. Thank you!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/a-simple-shutdown-script-needed.17043/