Project Point on Surface

Hello everyone,

I am trying to project a point on a surface using python and I can’t work the API of it. (I am using Revit 2021).
I can do it via the node Point.Project but I will need to make a while loop inside python that’s why I need it inside python code. Any idea how to write the function Surface.Project?