As a beginner to writing scripts with PowerShell, you won't learn the concept of a function until later. Newbies typically learn about PowerShell functions after they've learned what the pipeline is, ...
Business.com on MSN
Understanding functions in PowerShell
Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results