Every server command in the chat "/" turns into commandToServer('command', "args here"); (client-side), server-side translates it and finds the function serverCmd<command> that the user is requesting. When creating a server command, the first argument is ALWAYS the client calling it.
In this case, you say "/sv yes" and the server translates it based on what I said above to serverCmdSV(%client, "yes") and the code inside that command handles the rest of it.
Try making a command function using this example:
function serverCmdTest(%client, %stuff) {
%client.chatMessage("you did /test " @ %stuff);
}
Anyone on the server with that registered command doing /test <stuff here> or using the console with commandToServer('Test', "<stuff here>"); will print out to that client with you did /test <stuff they also sent>
Note: Server command functions have to be on your server (or other servers you have access to eval/files) for them to work