I need to change the folder icons of a selected folder and all the subfolder inside it with the same PNG image.
Accept any mode (Bash scripts, Automator workflows and so on...), I have no preferences.
This is a solution using the macOS GUI:
Let me know if this works for you.
Sometimes you have to click twice on the icon in the Inspector window in order to paste the image successfully.