Save configurations in a part as a serperate new part

I am wondering if it is possible to take a part that has configurations and be able to run a batch file or something to be able to open the file, activate the config, save it as a new part, delete all other configs and then save the part one last time.

We have a bunch of parts with a lot of configs that we want to clean up and create all new seperate files for each config without having to do it manually.

SolidworksTask Scheduler