what do you want the /commands to do?
starting the script files is easy:
function serverCommandStuff(%client)
{
// your code goes here
}
Then when you type /stuff
in the chat, that function will be run.
If you want something else you have to be more specific, what youve asked for is too vague.