The username to run the program as.
The domain of the user account.
The password of the user account.
The logon flag to control the behavior of the logon.
The name of the program to run.
Optional working directory for the program.
Optional flag to control how the program's window is shown.
The exit code of the program.
Runs a program under a different user account and waits for it to close before continuing.