Adding an Elastic Script to a GPO or MECM for deployment to a large Organization

I am working on installing a script that I verified works, and it does install on the local machine. It connects to the fleet server and everything is great.

Now for the issue. I have seen one prior conversation about GPOs with it. How is this set up to use with the script? Wouldn't MECM do the same thing or? Thank you for any and all assistance in this matter.