Skip to content

Instantly share code, notes, and snippets.

@mczerniawski
Created July 26, 2017 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mczerniawski/6b810492856a84e09c89a5a76a93c9ae to your computer and use it in GitHub Desktop.
Save mczerniawski/6b810492856a84e09c89a5a76a93c9ae to your computer and use it in GitHub Desktop.
[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