I guess we can run w3wp from the command line, not sure what happens with the existing running process y I try to run another one from the command line. I guess this could be automated. This is what IIS uses, but I suppose a lot of the options can be removed.
c:\windows\system32\inetsrv\w3wp.exe -ap "WaterDebugTest" -v "v4.0" -l "webengine4.dll" -a \\.\pipe\iisipm55599834-e4b5-4d77-bf66-a1d92962a4b0 -h "C:\inetpub\temp\apppools\WaterDebugTest\WaterDebugTest.config" -w "" -m 0 -t 20 -ta 0
In the meantime I find it easier to attach to the running process. Usually the username running the process matches the application pool’s name in IIS, unless you are forcing another user name. I use that to identify the process.