One of the nifty features of functions in PowerShell is that they can return as many results from as many places as you’d like. In fact, any method or cmdlet that would give you an output if you try it on the command line will also return values from a function. While this can give you a lot of powerful capabilities (like easily building functions that return a list of items), it can also
Read More...
Read the complete post at http://blogs.msdn.com/powershell/archive/2009/05/20/v2-quick-tips-finding-extra-outputs-from-your-script.aspx
Posted
May 20 2009, 02:56 PM
by
Windows PowerShell Blog