Skip to content

Instantly share code, notes, and snippets.

@rikwatson
Created April 1, 2019 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rikwatson/6ba5ed6ec76e8ffa175ff0eb2f06d590 to your computer and use it in GitHub Desktop.
Save rikwatson/6ba5ed6ec76e8ffa175ff0eb2f06d590 to your computer and use it in GitHub Desktop.
Powershell Begin, Process, End example
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