Ah, so it's CREATE_NEW_PROCESS_GROUP. In one of my attempts I tried the same using Win32::Process instead of system(), and looking through the flags I thought DETACHED_PROCESS
might do the job (it doesn't). Strange that I didn't even notice CREATE_NEW_PROCESS_GROUP.