PowerShell includes capabilities to improve the quality of scripts that will prevent some of the problems that might be encountered in the scripting process. In this chapter, we'll cover the following topics:
Chapter 2, PowerShell Peculiarities introduced PowerShell's two error-handling mechanisms: the
trap statement and the
finally statements. That chapter explained how these statements function in PowerShell code. The following sections ...