Doing More With Functions: Comment-Based Help
I just wanted to throw together a post highlighting how cool and easy it is to add help data to your own Functions and scripts.
The help data gets added via comments. For functions the help data can go in three places:
Before the function keyword (I like it up here)
Between the open curly brace and the param() statement
At the bottom of the function before the closing curly brace (I hate this spot)
For scripts we just put it at the top of your script before you type the param() statement,


