Gwith

Version2

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