This is what Adobe Media Encoder does when you drag-n-drop a composition to AME’s render queue – saves a version .aep in a temp sub-folder next to the current/last opened .aep version.
Or would be better to write a script that will create a temp folder, and save the project with increment and after done with all, delete them?