This MR mainly refactors the large wmain() into dedicated helpers.
- reusing existing exec/batch file/command discrimination helpers (cmd /C or cmd /K does behave as any other execution clause), - enabling ctrl-C handling when executing cmd /C or cmd /K (as native does).