Today, we're going to cover what can be a maddening issue in just determining whether your script failed.
Let's start with a very simple operation. Open a Powershell window and run the following:
PS C:\> this is an error
this: The term 'this' is not recognized as a name of a cmdlet, function, script file, or executable program.
...