Grasshopper Parametric Extrusion

How can I do parametric series of extrusion.
Simple rectangle will do. I want to create this series of extrusion or sweep. My reference line is already parametric for some reason my solid model didn’t follow. I use sweep in this case. image

Shape of extrusion be something like this. image

Upload your files.