(New Programmer) Creating notifications (New followers, subs, etc) system for a chat bot

Could you help me developing my commands? I need a command that executes a .batch file on my computer, and If you could with a cooldown, is it possible?