Created
May 1, 2015 22:48
-
-
Save mattmcnabb/2327558eef31d2a5e0c7 to your computer and use it in GitHub Desktop.
Begin Block Variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Test-BeginBlock | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[parameter(ValueFromPipeline)] | |
$Parameter1 | |
) | |
begin { $Variable1 = 'whatev' } | |
process | |
{ | |
"Process Block Parameter1: $Parameter1" | |
"Process Block Variable1: $Variable1" | |
} | |
end {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment