How to Automate Screenshot Naming on macOS

How to automatically rename screenshots on macOS using Folder Actions and a bash script.