Skip to content

Instantly share code, notes, and snippets.

@HowardvanRooijen
Last active December 16, 2015 21:18
Show Gist options
  • Save HowardvanRooijen/5498223 to your computer and use it in GitHub Desktop.
Save HowardvanRooijen/5498223 to your computer and use it in GitHub Desktop.
Function Outer-Method
{
Param
(
[string]
$First,
[string]
$Second
)
Write-Host ($First) -NoNewline
Inner-Method @PSBoundParameters
}
Function Inner-Method
{
Param
(
[string]
$Second
)
Write-Host (" {0}!" -f $Second)
}
$parameters = @{
First = "Hello"
Second = "World"
}
Clear-Host
Outer-Method @parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment