Your script should work pretty well, but there are a few things you should know
when you send meat to a buffbot through a script, Mafia automatically sends the nonphilanthropic buff price to the bot
So instead of the 1 Meat for Ode to Booze from kolabuff it will send the 315 meat for the next cheapest price, just to let you know.
This should also make sure that you dont overdrink in case you have to rerun the script like Bale mentioned.
I also created an .ash version of your script so you can start to get an idea of how to do it yourself, trust me its a lot easier and more comprehensive to use instead of CLI scripting. You can open it up in notepad like txt files.
EDIT
Sorry, I didnt realize that I forgot to place the Cookie counter script portion into a CLI execute, now this should work