Test-Exception.ps1
function Test-Exception { [CmdletBinding()] param ( [string]$ExceptionMessage ) #Write-Error ("There was an error called {0}" -f $ExceptionMessage) Write-Error ("There was an error called {0}" -f $ExceptionMessage) -ErrorAction Stop } |