Difference between command,handler and function

Hello there, what’s difference between command,handler and function. I have looked upon manuals but not very clear. Which scenario, I should which one of these command, handler and function :?:

Please see the reply at http://www.testplant.com/phpBB2/viewtopic.php?t=975. Let us know if you still have questions.