Tracing Your Way Through a Complex PowerShell Script
Sometimes PowerShell scripts do not behave as expected and it can be difficult to figure out why a complex script has done what it has. Tracing allows you to step through a script and find the point at which the script fails.