Untitled7.ps1
<#PSScriptInfo .VERSION 1.0.0 .GUID 62a3f5f1-fd2f-4dd5-ae2a-db042bd39446 .AUTHOR Vaclav Loub .COMPANYNAME Heidelberg Cement .COPYRIGHT .TAGS .LICENSEURI .PROJECTURI .ICONURI .EXTERNALMODULEDEPENDENCIES .REQUIREDSCRIPTS .EXTERNALSCRIPTDEPENDENCIES .RELEASENOTES Just a try, next things will follow up .PRIVATEDATA #> <# .DESCRIPTION first try #> Param() function New-Function { [CmdletBinding()] param ( [Parameter(ParameterSetName='ParameterSet1', Mandatory)] [ValidateSet('Fuck off','Chcipni','Nazdarek')] [string] $Ahoj, [Parameter(ParameterSetName='ParameterSet1')] [switch] $WhoCares ) # TODO: place your function code here # this code gets executed when the function is called # and all parameters have been processed } |