script to extrude

i could do a manual extrude + faces
but i like before to find an exsiting script to extrude a cross section

doing the faces also!

anybody knows an example of this ?

Thanks