We’ll set the $ErrorActionPreference variable to “Stop” since the main chance of errors we’ll be encountering in this script are from attempting to obtain or invoke functionality on an element that is unavailable or unresponsive. When that occurs, we don’t want the script to continue pr...