Bulk/single (static mesh) assign specific materials to material slots according to material slot's name (from FBX)

Hi Every one, I was wondering if there is a way to assign specific materials to material slots according to material slot’s name (from FBX) of single/Bulk (static mesh/s).

what I mean is:
let’s say I have to static meshes that have identical material slots, Mesh01 & Mesh02
Mesh01:
has 10 material slots that are named from FBX and they have materials assigned to these slots, so all 10 slots are populated with their materials.


Mesh02:
has 8 material slots that are named from FBX (IDENTICAL to Mesh01, but NOT the same order!!!) and they don’t have materials assigned to these slots, so all 8 slots are not populated yet.

list of solution I tried (but failed):
1- dis/enabling option of (reorder materials to FBX order)
2- copy and paste material slots category (didn’t worked because of the different slot’s order)
3- assets matrix DON’T have editing material slots option

as you can see, it’s frustrating to do material assignment for every single static mesh for hundreds of static meshes…
thanks for reading, help is appreciated.

forget to mention one of the “turn arounds” I found, is to make a “Master Mesh” that has all material slots assigned, then I can duplicate it several times, then re-import from other mesh that has the same materials but not all of them.
pros:
it worked exactly as it should and it’s way easier, do it once and for all!
cons:
well, I guess you already know, so many un-used material slots!!! that needs to be removed!!! one by one! so it defeats the whole purpose!