Skip to content

Instantly share code, notes, and snippets.

@santisq
Last active February 8, 2022 16:52
Show Gist options
  • Save santisq/72e1432c0c07ff33a6b3a857fc30e2ad to your computer and use it in GitHub Desktop.
Save santisq/72e1432c0c07ff33a6b3a857fc30e2ad to your computer and use it in GitHub Desktop.
$myWeirdParams = @(
"-First" | Add-Member -NotePropertyName '<CommandParameterName>' -NotePropertyValue 'First' -PassThru
3
,@("name", "fullname")
)
Get-ChildItem | Select-Object @myWeirdParams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment