title: How to execute a powershell with '-command' argument in administration mode
body: <p>How can I run a powershell with -command parameters?</p>
  
  <p>I tried adding '-Verb runAs', but I get a null valued expression.</p>
  
  <pre><code>powershell -Verb runAs -command "(Get-Date (Get-Process explorer).StartTime).ToString('yyyyMMdd')"
  </code></pre>
  
  <p>I open a powershell with admin right, the command </p>
  
  <blockquote>
    <p>(Get-Date (Get-Process explorer).StartTime).ToString('yyyyMMdd')</p>
  </blockquote>
  
  <p>return a right value. But when I start a powershell without admin right, I get a null value.</p>
  
  <p>So I think the problem is the 'powershell -Verb runAs' does not run the command in admin mode.</p>
  
  <p>Note: I logged in as ad administer when I tried this.</p>