Hello tim12p,
Metashape.Elevation - is a class name, and you need to get access to the certain element in the project.
If you need to duplica the elevation model in the project opened in GUI, then you can do it in following way:
chunk = Metashape.app.document.chunk
dem = chunk.elevation
new_dem = dem.copy()