Mutton Jeff, just to say thanks for posting that. I did know there was such a script but had been unable to find a reliable source.
I only wanted the boot at opening the lid in my case for customs checks and accidental opening. The Terminal script for that works like a charm for my M1 on Sequoia.