While writing scripts and functions is straightforward in most situations, there are cases where you are required to write complex scripts whose lengths run in hundreds of lines. In such situations, it is important that you remember the following points.
Important points to remember
Using Host cmdlets
There are five Host cmdlets that help you Clear the host, Get information about the host, send Out the output to the host, Read information from the host, and Write information to the host.
PowerShell is a shell—an engine—as Don Jones points out in his powershell.org article (https://powershell.org/2013/10/the-shell-vs-the-host/). The Host is what hosts this engine, or interacts with the engine on your behalf....