Skip to content

Instantly share code, notes, and snippets.

@mrhockeymonkey
Created May 22, 2018 15:19
Show Gist options
  • Save mrhockeymonkey/206fedb7876c7e6ba58f7b226e0a5704 to your computer and use it in GitHub Desktop.
Save mrhockeymonkey/206fedb7876c7e6ba58f7b226e0a5704 to your computer and use it in GitHub Desktop.
Show PSBoundParameter Values
$PSBoundParameters.GetEnumerator() |
ForEach-Object -Begin {
$Width = $PSBoundParameters.Keys.Length | Sort-Object | Select-Object -Last 1
} -Process {
"{0,-$($Width)} : '{1}'" -f $_.Key, ($_.Value -join ', ') |
Write-Verbose
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment