Separete channel of imagens (R,G,B,A)


Hello guys, i need a help with a process that i need to do, i have many models with texture PBR like MRA,MRE,RAM and more, so i need a script that separete the channel of image R,G,B,A and create images with only parts then.

Thank you for this guys!