title: How to schedule a powershell script for automating wack process through windows scheduler?
body: <p>I am able to execute the below command from PowerShell prompt and command prompt, but I am unable to schedule it using windows scheduler.</p>
  
  <p>powershell script code:</p>
  
  <pre><code>appcert.exe test -apptype metrostyle -packagefullname abc_somename -reportoutputpath C:\result.xml
  </code></pre>
  
  <p><code>appcert.exe</code> is a Microsoft provided exe for performing certification test on my Windows&nbsp;8 application. I did the following:</p>
  
  <ol>
  <li><p>I am making a file <code>ABC.ps1</code> with code:</p>
  
  <pre><code>appcert.exe test -apptype metrostyle -packagefullname abc_somename -reportoutputpath C:\result.xml
  </code></pre></li>
  <li><p>I create a batch file <code>PQR.bat</code> with this code:</p>
  
  <pre><code>powershell -command "&amp; 'PathOfABC\ABC.ps1' "
  </code></pre></li>
  <li><p>I am scheduling it through Windows scheduler.</p></li>
  </ol>
  
  <p>While creating task under actions tab, I choose following details:</p>
  
  <ul>
  <li><p>Action: Start a program</p></li>
  <li><p>Program/Script: Path to the batch file</p></li>
  <li><p>Start in: Path of the folder containing the batch file</p></li>
  </ul>
  
  <p>And I schedule it to run every 15 mins. The Task completes, but I do not see any <code>result.xml</code> in my C drive. Can you point me how can I schedule this batch file to execute every 15 mins?</p>