If you want to build a simple UI on top of a script for Mac, I recommend Platypus: https://sveinbjorn.org/platypus
The app has been around for years, is open source, and works really well.
The app has been around for years, is open source, and works really well.