Gwith

get-nameage

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