Perhaps they could've done something like...
sudo tccutil disable_monthly_screen_recording_prompt [bundle_id]
tccutil(1) is already a thing, which by its name you'd think would give you full CLI control over the macOS permission system (TCC), but strangely it only has one command as of now: "reset" (in Sonoma at least, haven't checked Sequoia yet).