First define a procedure in a mel script that is in the proper location; one of the directories in the script path. You can find out what that is with
getenv MAYA_SCRIPT_PATH;
give that script the name of the procedure. In this example, use the file name myAddition.mel
global proc float myAddition(float $a, float $b){
float $c;
$c = $a + $b;
return $c;
}
Now add this line to the render settings Post render MEL:
print myAddition 5 6;
If you're just trying this and you don't care about loosing the procedure after quitting Maya, you can just run the procedure declaration in the Script Editor, but if you want to use post render MEL commands in a batch render, you must do it the way I just showed you.