Batch .obj Decimate Script Blender 2.91


I have found this great tool made by member #abdoubouam to decimate multiple OBJ files in a batch.

This is the original (and closed) post by #particl3s

It workes perfectly in Blender 2.79 but it seems not to work in 2.91

Any support to make this work in the current version as well or point out for another existing tool is appreciated, thanks