Extrude to surface

I would like a script that extrudes multiple closed polygons to a specific plane. I have the profiles of several buildings and just want to extrude them to the ground.