If you are building PowerShell longer than a few lines, it is good practice to break up your code into reusable snippets. This way you can only call the code snippet over and over instead of ...
Here's a breakdown of what it can do and how you can use it in conjunction with other custom functions. Starting in PowerShell V4, a new common parameter was introduced called PipelineVariable which ...