Gwith

Gotit

May 9th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. function get-nameage {
  2. param(
  3. [parameter(Mandatory=$True)]
  4. [string]${Name},
  5.  
  6. [parameter(Mandatory=$True)]
  7. [string]${Age}
  8. )
  9. begin{
  10. $global:Info = New-Object PSObject -Property @{
  11. Name = ${Name};
  12. Age = ${Age}}
  13. }
  14.  
  15. end{
  16. write-output $Name $Age
  17. }
  18. }
  19.  
  20. get-nameage
Advertisement
Add Comment
Please, Sign In to add comment