Comment Based Help

Each PowerShell Function needs a Comment Based Help. You can learn all about it from Microsoft

OSD Example

Here is what an example looks like in the function

And the results

Get-Help Get-OSDPower -Detailed

The coolest thing is the Online parameter. Give it a try!

Get-Help Get-OSDPower -Online