Set-StrictMode -Version Latest
|
Forces all variables to be declared (no implicit variables)
|
Scope - Script
|
$ErrorActionPreference = 'Stop'
|
Throw erros to work with Try Catch
|
Scope - Script
|
-ErrorAction Stop
|
Throw erros to work with Try Catch
|
Scope - Single Line
|