Created
January 22, 2020 07:26
-
-
Save kpatnayakuni/56698f074eb369cd1ba2a31bc705172d to your computer and use it in GitHub Desktop.
Demo Register Argument Completer
This file contains hidden or 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
| Function Get-Country | |
| { | |
| [CmdLetBinding()] | |
| param | |
| ( | |
| [parameter(Mandatory = $false)] | |
| [ValidateSet('''North America''', 'Europe', 'Asia', 'Oceania')] | |
| [string] $Continent, | |
| [parameter(Mandatory = $true)] | |
| [string] $CountryName | |
| ) | |
| ## Write your code here | |
| Write-Host $CountryName | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment