Get the nearest point on surface of mesh from a point outside the mesh

Surprisngly there still doesn’t seem to be an optimal solution to this other than this brute force approach