Created
August 26, 2016 00:23
-
-
Save emyann/1b66a7cb2cc24d6c33e9c4177e6ada4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Pretty description of what the script do | |
.EXAMPLE | |
PS C:\> .\Script-Boilerplate.ps1 -Option "Value" | |
.EXAMPLE | |
$var = @{} | |
PS C:\> .\Script-Boilerplate.ps1 -Option "Value" -OtherOption $var | |
#> | |
[CmdletBinding()] | |
param | |
( | |
[Parameter(Mandatory = $true, HelpMessage="Give an example of a value for this attribute")] | |
[String] | |
$Option, | |
[Parameter(Mandatory = $false, HelpMessage="Give an example of a value for this attribute")] | |
[PSCredential] | |
$OtherOption, | |
[Parameter(Mandatory = $false, HelpMessage="Give a description of what this switch does")] | |
[switch] | |
$CustomSwitch | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment