Don’t do that: You want to manually increment the number of examples in Comment-Based Help.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<# .SYNOPSIS Short description .DESCRIPTION Long description .EXAMPLE1 Example of how to use this cmdlet .EXAMPLE2 Another example of how to use this cmdlet #> function Get-Something { } |
Doing that shows no examples at all and moreover you are doing useless extra job.
Do that: You can just let .EXAMPLE as it is and PowerShell will automatically increment for you.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<# .SYNOPSIS Short description .DESCRIPTION Long description .EXAMPLE Example of how to use this cmdlet .EXAMPLE Another example of how to use this cmdlet #> function Get-Something { } |