Has this been tested against macOS 12.1? If not, would you mind testing and posting any updates to the script to allow it to work with 12.x.