You don't need to bother...just set your Camera Raw "Defaults" to include Enable Lens Profile Corrections and check the Auto CA correction. Then go to the ACR flyout menu and select Save New Camera Raw Defaults...Note: if you have your ACR preferences set to have seperate defaults based on camera serial number and ISO, you'll need to save out seperate defaults for each camera and ISO you use.
Setting ones' own defaults for Camera Raw is IMO an unsung / underdocumented feature, but a great way to get more satisfying performance out of Camera Raw.
Thanks! My first attempt froze during the image cropping part of my script, but at least I've got the automatic lens profile corrections working.