Help on gRun.exe, v1.5:

Copyright(c) 2018 Alexey Kuryakin RU kouriakine@mail.ru.
gRun - Win32 utility to run program in specified display
       mode (hidden,normal,minimized,maximized;no/wait).
       It works like analog of Linux GTK utility gRun.
Use this program free under the terms of LGPL license.

Usage: grun [-opt] cmdline

Options (started from - char):
 -v  - verbose mode: MessageBox on errors (default is silent)
       it's better to place this option as 1st option in list
 -w  - wait while cmdline running, default is no waits
       in wait mode gRun return cmdline's exit code
 -h  - run cmdline in hidden window (SW_HIDE), default is visible (SW_SHOW)
 -0..9 run with display mode assigned to 0=SW_HIDE(like -h), 1=SW_SHOWNORMAL,
       2=SW_SHOWMINIMIZED, 3=SW_SHOWMAXIMIZED, 4=SW_SHOWNOACTIVATE,
       5=SW_SHOW(default), 6=SW_MINIMIZE, 7=SW_SHOWMINNOACTIVE,
       8=SW_SHOWNA, 9=SW_RESTORE
 -i  - run with IDLE_PRIORITY_CLASS         ( 4  )
 -b  - run with BELOW_NORMAL_PRIORITY_CLASS ( 6  )
 -n  - run with NORMAL_PRIORITY_CLASS       ( 8  )
 -a  - run with ABOVE_NORMAL_PRIORITY_CLASS ( 10 )
 -g  - run with HIGH_PRIORITY_CLASS         ( 13 )
 -r  - run with REALTIME_PRIORITY_CLASS     ( 24 )
 -c  - run with ComSpec /c ... (not compatible with -ksopmxy)
 -k  - run with ComSpec /k ... (not compatible with -csopmxy)
 -s  - run with ShellExecuteEx(default) instead of CreateProcess
 -o  - run with ShellExecuteEx(open) instead of CreateProcess
 -p  - run with ShellExecuteEx(print) instead of CreateProcess
 -m  - run with ShellExecuteEx(edit) instead of CreateProcess
 -x  - run with ShellExecuteEx(explore) instead of CreateProcess
 -y  - run with ShellExecuteEx(properties) instead of CreateProcess
 -e  - run with ELEVATED (ADMIN) rights via ShellExecuteEx(runas)
 -?  - run this help screen

Exit code returned by gRun:
 0   - OK, cmdline was successfully started
 1   - invalid options specified (unsupported opt)
 2   - no arguments specified (empty command line)
 3   - could not create process (invalid cmdline or access)
 4   - exception happened during execution
 n   - in wait mode (-w) gRun return cmdline's exit code

Examples:
 grun firefox.exe - run Firefox in default mode, no wait
 grun -cwh myprog - run myprog in hidden CMD console, wait
 grun -b calc     - run calculator with low priority, no wait
 grun -vw notepad - run notepad in normal mode, verbose, wait
 grun -w7 myprog  - run myprog in minimized noactive mode, wait
 grun -hw myprog  - run myprog in hidden mode, wait
 grun -e7 myprog  - run myprog ELEVATED, minimized noactive mode
 grun -o help.htm - open document help.htm
 grun -m help.txt - edit document help.txt