Setting the strictmode (Set-StrictMode) to -version 2 so common coding mistakes are caught.  Setting ErrorActionPreference to Stop so we stop executing on occurence of an error.