title: Test admin rights within PowerShell script?
body: <p>Whats the best/easiest way to test for administrative rights in a PowerShell script?</p>
  
  <p>I need to write a script that requires administrative rights and want to know the best way to achieve it. </p>