RhinoScript PLY to NURBS iges

Hi, I am new to using Rhino and Rhinoscript so I don’t really know how to code much here.

I’m trying to code a simple code in Rhinoscript to automatically take a PLY file, use Quadremesher, and use MeshToNurbs and create a NURBS surface from QuadRemesh. Then automatically save this file as an iges file type. I’ve attempted it with my limited knowledge of coding and I’ve had trouble opening and saving the file automatically if anyone could help me with that? Thanks!

Femur PLY to NURBS.rvb (620 Bytes)