Created
April 1, 2019 08:03
-
-
Save rikwatson/6ba5ed6ec76e8ffa175ff0eb2f06d590 to your computer and use it in GitHub Desktop.
Powershell Begin, Process, End example
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-Demo | |
{ | |
Param ($Param1) | |
Begin{ write-host "Starting"} | |
Process{ write-host "processing" $_ for $Param1} | |
End{write-host "Ending"} | |
} | |
Echo Testing1, Testing2 | Test-Demo Sample |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment