How to use "Substitute Materials by Table

Hi I want to substitute the materials from the Static mesh selected using the name from the materials, I posted my question in other way here.