title: Yii2 controller/action in windows scheduler
body: <p>I have found a few questions and answers for this, but I can't make it work. I have a controller (extending <code>controller</code>), and an action. When I try this in PowerShell (as admin):</p>
  
  <pre><code>C:\wamp64\www\project\yii controller/action
  </code></pre>
  
  <p>a black <strong>cmd</strong> window is appearing for a moment but certainly doesn't do what it supposed to do, otherwise I could see the results what I'm waiting for. How can I check what is going on in this <strong>cmd</strong> window? Maybe there is an error message that could help me to find out what is wrong. I have tried <code>-noexit</code> but it's still disappearing. 
  If I run the controller/action in a browser, it is working.
  Once it is working I guess I can add it to windows scheduler.</p>