Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Info = New-Object PSObject -Property @{
- Name = $null;
- Age = $null}
- function get-nameage {
- param(
- [parameter(Mandatory=$True)]
- [string]${Name},
- [parameter(Mandatory=$True)]
- [string]${Age}
- )
- end{
- write-output $Name
- $Age
- }
- }
- get-nameage
- #Write-Host $name
Advertisement
Add Comment
Please, Sign In to add comment