title: Showing the UAC prompt in PowerShell if the action requires elevation
body: <p>I have a simple PowerShell script to stop a process:</p>
  
  <pre><code>$p = get-process $args
  if ( $p -ne $null )
  {
  $p | stop-process
  $p | select ProcessName, ID, HasExited, CPU, Handles
  }
  else { "No such process" }
  </code></pre>
  
  <p>If I try to stop a process not started by the current user; it works on Windows Server 2003. However, on Windows Server 2008 (and other Windows flavours with User Account Control), I get the following error:</p>
  
  <pre><code>Stop-Process : Cannot stop process "w3wp (5312)" because of the following error: Access is denied
  </code></pre>
  
  <p>Is there any way to get around this without running PowerShell with elevated privileges ? It would be OK if the user was just presented with the UAC prompt, whenever he tries to execute an action, that requires elevation.</p>