title: PowerShell script to restart a service
body: <p>My mission is to press a keyboard sequence, such as <kbd>Ctrl</kbd> +<kbd>Shift</kbd> +<kbd>R</kbd>, to restart a Windows Service.</p>
  
  <p>I have a script which works fine in the PowerShell ISE, when launched with administrative privileges.</p>
  
  <p>When I try with a PowerShell script it fails due to insufficient Administrative Privileges.  It’s galling that I can get it to work with an old-fashioned bat file, but not PowerShell.</p>
  
  <p>The root of the problem is that shortcuts to a PowerShell script have their Administrative privileges box greyed out.  So far no work-around has overcome this privilege problem.</p>
  
  <p>Any ideas?</p>