Steps fo running the script in QGIS: 1. Copy the script into the script folder of your QGIS: e.g. "C:\Users\{you name}\AppData\Roaming\QGIS\QGIS3\profiles\default\processing\scripts" 2. Reload plugin processing in QGIS. 2. Run the processing script in QGIS.