Public/ScriptName.ps1
[CmdletBinding()] param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [ValidateSet("DEV", "STG", "PRD")] [string]$Environment, [Parameter( Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [ValidateScript({Test-Path $_ -PathType Any})] [string]$Path ) <# .Synopsis Short description .DESCRIPTION Long description .EXAMPLE Example of how to use this cmdlet #> Write-Debug "Starting ScriptName.ps1..." # stuff here... Write-Debug "Finshed ScriptName.ps1..." |