Guest User

Untitled

a guest
Apr 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. $foo = @{
  2. bar = 1
  3. blah = 2
  4. }
  5.  
  6. function baz {
  7. [cmdletbinding()]param(
  8. $foo
  9. ,$which
  10. )
  11.  
  12. $which | % { Write-Host $foo.$_ }
  13. }
  14.  
  15. baz $foo bar
  16. baz $foo @("bar","blah")
Add Comment
Please, Sign In to add comment