Advertisement
Guest User

Untitled

a guest
May 29th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Do-A.ps1
  2. PARAM([String] $Param1)
  3.  
  4. Function Do-A{ PARAM([String] $Param1 ); Write-Output "A: $Param1"}
  5.  
  6. Do-A -Param1 $Param1
  7. #    or with using splatting (useful when multiple parameters "coincidentally" match up)...
  8. # Do-A @PSBoundParameters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement