Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- .SYNOPSIS
- 10 words
- .DESCRIPTION
- Tweet
- .NOTES
- Full description
- On multiple lines
- .PARAMETER Mandatory
- This ian a mandatory param
- .PARAMETER Optional
- This is an optional param
- .PARAMETER Help
- Show this help.
- .EXAMPLE
- Template.ps1 -Mandatory mandatoryValue -Optional optionalValue
- #>
- param([string]$Mandatory, [string]$Optional="optionalValue",[switch]$Help)
- $ErrorActionPreference = "Stop"
- if (($Mandatory -eq "") -or ($help.IsPresent)) {
- Get-Help $PSCommandPath -Full
- exit
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement