Something I just found out - ARK already supports running custom scripts and commands. You can use the command “ScriptCommand <CommandString>” to call scripts or
“GameCommand <TheCommand>” to run commands. Not sure what the distinction is between scripts and any other commands. Both however need to be part of a custom game mode.
SoTF makes use of some additional commands so looking at the SoTF game mode might give you a clue as to how to go about implementing your own.