Mesh Merging Not Preserving Materials

With 4.24.3, I noticed that if I merge static mesh actors using the python script commandlet, all of the materials get merged and set to World Grid Material regardless of what settings I use. But, if I run the same script with the -ExecutePythonScript all of my materials are preserved. Anybody have any insight into this? I’d prefer to run the commandlet and not have the full editor gui open.