RetroArch supports CHD files so you would need to either download the MAME set for PCECD or unzip your games and then run what you have through chdmon which is a program that comes included in MAME. I believe there are some files floating around that will allow you to run it in batch but I'm not sure where you would find them.