I've got THPS2 set up in Launchbox this way, pointing to my.
If it detects that it isn't, it runs nircmdc again and resets your resolution (in my case, back to 2560 x 1440, 32 bits). After that, there's a wait loop that keeps checking the task manager to see if THawk2 is running. I put in a 5 second timer in the batch file so you have a chance to authorize it (if you don't do it in time, the batch file will move on and change the resolution, and THPS2 will quit). Things are a little tricky here, because, at least on my system, Windows 10 UAC will ask for approval before it launches. Then, it starts Demo's TH2 launcher in quiet mode (-F).
Tasklist /FI 'IMAGENAME eq Thawk2.exe' 2>NUL | find /I /N 'THawk2.exe' >NULįor the folks at home, it runs nircmdc.exe (the command-line version of nircmd, which I just put in my Tony Hawk 2 directory, since I probably won't use it for anything else) and sets the screen resolution to 1920 x 1080, 32 bits.