Skip to content

Instantly share code, notes, and snippets.

@gravejester
Last active June 3, 2016 18:57
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 gravejester/0f90a887c3765771ebc15a94120cbdeb to your computer and use it in GitHub Desktop.
Save gravejester/0f90a887c3765771ebc15a94120cbdeb to your computer and use it in GitHub Desktop.
$a -foobar $b # should not match
Invoke-Something -foobar
Invoke-Something -foobar value
Invoke-Something -foobar:$true
Invoke-Something -foobar: $true
Invoke-Something -p1 v1 -p2 10 -p3 'value' -switch -verbose
Invoke-Something -p1 {Get-Something}
Get-Something -p1 'Input' | Invoke-Something -p1 @('one','two','three') | ForEach-Object {$_}
Invoke-Something -parameter1 'value' `
-parameter2 10 `
-parameter3 $value | Do-Something
Invoke-Something -p1 {
Get-Something -parameter 'value'
} | Do-Something
Get-Foo (1..20 | Out-String) -Param2 "param2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment