If I understand correctly, you are loading many .stl files, each with a different name, and showing them together. And you want them to have different colors.
The easiest way to do this is to select all of them in the Pipeline Browser
and add the Group Datasets
filter. ParaView will apply a color map to the blocks.