Gwith

Q

May 12th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 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
  19. #Write-Host $name
Advertisement
Add Comment
Please, Sign In to add comment