Starts a new application executing the specified file and passing the arguments
and tries to retrieve the main window from the started process.
The main window of the started application or null if an exception
is thrown and ErrorAsException is set to false.
This method blocks infinitely if the started application does not
have a main window.
| Exception | Condition |
|---|---|
| ArgumentNullException | If fileName is null. |
| CommandFailedException | If starting the application fails. |
