You can configure applications or scripts to execute when logging in to your GNOME session. If you require your application or script to launch regardless of your desktop environment or even before you're logged in, you can use other methods such as systemd or crontab.
This method works for any Linux distributions as long as GNOME is the user's desktop environment. Some of the Linux distributions with GNOME as the default desktop environment are Ubuntu, and CentOS / Red Hat.
This method creates an autostart config file that GNOME uses to launch your application or script. It does not require the installation of third-party tools such as GNOME Tweaks.
Make sure the user has execute permission on the script or application.
Related: How to change file and folder permissions in Linux
Comment anonymously. Login not required.