Hammer texture script lua

Hello ,
I have a question ,
Is it possible to change texture of a map via a script because I have a problem with a brush that’s black color on the map and we can’t decompile the map for fix it.

Best Regards ,
Proxene