Created
July 26, 2017 20:29
-
-
Save mczerniawski/6b810492856a84e09c89a5a76a93c9ae 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
[CmdletBinding(DefaultParameterSetName='Directory')] | |
Param( | |
[Parameter(Mandatory=$false, | |
ValueFromPipeline=$True, ValueFromPipelineByPropertyName=$True)] | |
[Parameter(ParameterSetName='Directory')] | |
[ValidateScript({Test-Path $_ -PathType Container })] | |
[System.String[]] | |
$Path, | |
[Parameter(Mandatory=$false, | |
ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)] | |
[Parameter(ParameterSetName='File')] | |
[ValidateScript({Test-Path $_ -PathType Leaf })] | |
[System.String] | |
$FontFile | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment