mspaint.exe from php not opening window
<p>I am trying to open <code>mspaint.exe</code> window from PHP.</p>

<p>I am using the following function:</p>

<pre><code>function run_exe() {&lt;br&gt;
    $WshShell = new COM("WScript.Shell");&lt;br&gt;
    $oExec = $WshShell-&gt;Run("mspaint.exe", 3, true);&lt;br&gt;
}
</code></pre>

<p>Now I see that <code>mspaint.exe</code> process is added in task manager.
However it is not opened in a window.</p>

<p>How can I get it to be opened in an actual window?</p>

<p>I am using php 7.0 on IIS windows 10.</p>