Squish and SquishBack command in grasshopper giving curve

What I would do is find the way to Squish and SquishBack
with a script Where I can assign a series
of curves for squishback

Someone can help me to do this thing?