
The practicalities of producing PowerShell output and generating logging are other essential scripting elements. No administrator likes to stare at a blank screen, wondering if the command just entered is functioning or not. Also, when performing bulk operations against multiple objects, it could be wise to register the success or failure of this operation in a manner that is useful for reporting. Depending on your use case, it can also be beneficial to log these failures so that they can easily be re-used for consecutive retries after remediation of the cause.
The sixth part of the Practical PowerShell series covers these topics, talking about output streams and logging.