Trying to make a perforation script for a surface but having trouble

Hi welcome,

Do this

internalize

Here

Cheers,
BVR