title: How to open and bring in front a desktop application from command line or from other application?
body: <p>Sometimes there is need to open new program (e.g. Windows Powerpoint presentation as slideshow can be opened by command line "<code>powerpnt.exe /s</code>") from commandline, maximize this program and bring it in front of desktop as the first program the user can see and use. This happens by default if user directly enters command in the command prompt, because the command prompt is the active window. </p>
  
  <p>But the question is - how to do this, if command line is executed from background process - e.g. from custom Windows service application of from the Windows Task Scehduler - in both cases the new windows is not brought as the first window.</p>
  
  <p>At present I can imagine only quite hard solutions (whose drawback is that they required coding and they can not be used from Task Scheduler):</p>
  
  <ol>
  <li>one can try to get handle of the main window of the opened program and the manipulate this window - e.g. maximize and so on;</li>
  <li>one can try to abandon command line at all and instead manipulate Windows Office applications as COM objects.</li>
  </ol>
  
  <p>Maybe there is easier way?</p>