@T3P3Tony Thanks! I'll look into it. I was able to get my issue resolved.
Once I got the connectors working correctly and changed my script, it works, although the script itself is clunky, so I'll look at what the new firmware allows to simplify it. I added backshells to the PH connectors to protect the pin crimps. I'll look into uploading the backshells to Thingiverse or something in case they're useful to someone else. I find bare PH connectors fragile.
I mainly use the script when the bed is too far off level to use G32, which usually happens if there's a problem with one of the stepper connectors.