The Console

gi.argc()

Returns the number of arguments on the console

gi.args()

Returns the next entry on the console as a string

gi.argv(index)

Returns the argument at index from the console (command is arg 0)

gi.AddCommandString(text)

Adds a command to the server console, as if it had been typed