How do I automatically add push notification entitlement in iOS?

I want to automatically enable the following push notification entitlement every time a build is completed. Currently, that switch is “off” by default

I couldn’t figure it out either - luckily, we don’t recompile often.

If you figure this out, pls let me know!