Shouldn’t this free script already be able to do the exact same things as your script is.
Just that it doesn’t have permission checks