Powershell try and catch, only works in v2
try { dir nonexistent: -errorAction Stop} catch { "Something strange occurred: $_"}