How to execute a .bat file with a command (with a cooldown by user if possible) on the twitch chat

The Chat Guide in the docs includes an example of how to create a bot that connects to chat and performs a function when there is a command https://dev.twitch.tv/docs/irc

All you would need to do is change the command to whatever you want it to be, and have it execute your .bat file. If you want a cooldown, just simply have a boolean variable that flips when the command is used, and then after a set period of time flips back, and then simple check that variable when the command is used.