You don't need an Addon to run these Commands, in fact, Addons consist of these, so basically you're going to write your own little Addon, so here's just the basic steps:
Create a new folder in your AddOns folder called
NameOfYourAddon.
Inside it, create two new files called
NameOfYourAddon.toc and
CallThisHoweverYouWish.lua. Make sure their file type actually is .toc and .lua, it's a common mistake that people create files like
MyAddon.lua.txt.
Now, open those files with a simple text Editor (Notepad will do):
.toc file:
Code:
## Interface: 30300
## Title: Myaddon
CallThisHoweverYouWish.lua
Interface determines the Interface Version your Addon is supposed to work with, if it is older (smaller) than the Client's current Version, your Mod will show up as "Out of Date"
Title is simply what your Addon will be called in the Addon selection screen.
After that, you have to load the files which contain the actual code, in your case CallThisHoweverYouWish.lua.
.lua file:
Here you put all the "commands" you want the game to execute on load, no need for /run or sth, just plain text.
When you're done, start the game and enjoy your very own addon