The process was as simple as going to Google Apps Script, clicking 'New Project', pasting in the script (which ChatGPT assured me was "fully balanced and tested"), clicking the 'Save' icon, then ...