Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[CmdletBinding()]
Param (
[string]$Path,
[Alias("q")]
[int]$Quakes = 5,
[Alias("h")]
[int]$Height = 500,
[Alias("w")]
[int]$Width = 800
)
If ($Path)
{ If (-not (Test-Path $Path -ErrorAction SilentlyContinue))
{ Write-Warning "$Path does not exist, please correct and rerun script"
Exit
}
}
Else
{ $Path = Split-path $MyInvocation.MyCommand.Definition
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment