Massive generation of landscapes

Hello community,

I would like to build 4096 huge landscapes out of 4096 different grayscale heightmaps and save each landscape in a different level.
Does anyone know a way to script the operation of generating all those levels?

Kind regards and thanks in advance!

Roberto