Populate Terrain script?

Hi
I use to use Populate Terrian script but since moving to 3dsmax 2019 its no longer works.
I did see someone on Scriptspot had access to the source code and recompiled it, but it doesn’t work for me, I end up with syntax errors.
Is there an alternative to making dodgy meshes into nice size quads?

The scriptspot link

Here’s a link to what populate terrain does.

1.86 seems to work fine for me in 2020

Thanks,
I guess something must have changed from 2019 to 2020 for it not to work for me.
I still get this error
–Syntax error: at <, expected
–In line: < !