Unfortunately, I don't know of a way to do that. I can check with the programmers, but I suspect an automated script/command might cause more problems than it would fix (some rocks, walls, etc are deliberately placed partly under ground level, and the placement of some items, like ladders, may need to be fairly precise to have the animations and AI grid at the top and bottom line up properly).