/ban 0 ID TIME Reason
or
commandtoserver('ban',0,ID,Time,"Multiple Word Reason");
Set TIME to -1 for permanent ban. With the /cmd, Reason can only be one word. The 0 is technically the client ID but that's not needed if the client isn't in the server.