Apply Function Multiple Times

Can you show which output you were expecting?

Also, are you insistent on a designscript solution or would python be ok?

If design script is your weapon of choice then I can recommend the literature uploaded in this post: