concept result bug in category powershell

appears as: results bugs, results bug, results bug
Learn PowerShell Scripting in a Month of Lunches

This is an excerpt from Manning's book Learn PowerShell Scripting in a Month of Lunches.

23.3. Dealing with results bugs

Results bugs are really easy to avoid if you follow the scripting process we’ve been suggesting throughout this book: Start by running commands right in the console. Before you use any command in any script, run that command by itself first. You’ll get to see the output it produces, and you can build safe assumptions from that concrete evidence. We know this seems like overly simplistic advice; but often, in the rush to get going on a command or script, people skip this step. They make assumptions about command output rather than working from concrete data, and they put themselves into a debugging tailspin.