Created
May 22, 2018 15:19
-
-
Save mrhockeymonkey/206fedb7876c7e6ba58f7b226e0a5704 to your computer and use it in GitHub Desktop.
Show PSBoundParameter Values
This file contains hidden or 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
$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