Event Scripts can be used to run a batch or bash script during certain events related to gameservers. These are created in the game templates, you can access them by going to Configuration > Game Templates > Edit > Event Scripts.