The script can be downloaded here. Once the ZIP file is decompressed the PY file can be loaded into the script editor.

Once opened the script will probably require some modifications for each specific usage.