Good practice to run a script would be to place it in a folder ~/bin
or a folder .local/bin
under your home folder. Executables placed in one of these folders will automatically be included in your search PATH. That means that you can execute the script directly by typing its name at the terminal prompt or in the Run dialog that you get when you press Alt+F2.
If you want to be able to launch the script using your mouse, then good practice would be to create a launcher for it. Launchers you put in .local/share/applications
will automatically appear in the application overview. From there, you could pin them to the Dash or the Ubuntu Dock for very quick access. Alternatively, you will be able to very quickly launch the script by hitting Super then type a few letter of the name of the script. See here (answer of fnkr) for how to create a .desktop launcher.
To run the script from the desktop, place the .desktop
file in your Desktop folder. On your first attempt to launch it, you will be asked by the system for permission to run it.
gio set Desktop/your-file.desktop "metadata::trusted" yes