title: try, catch doesent seem to work
body: <p>I have the following code which I thought would allow me to catch an error and instead of generating the error write out "An Error Occurred".</p>
  
  <p>Unfortunately, it still shows the error "Failed to restart the computer: Access is denied" instead.</p>
  
  <p>I know why this is happening but I want to be able to catch the error and reformat it. What am I doing wrong?</p>
  
  <pre><code>try {
      Restart-Computer -ComputerName MFG-KY-PC74 -Force 
  } catch {
      Write-Host "An Error Occurred"
  }
  </code></pre>