Site owners didn’t received an email/notice when the storage limit is about to be reached. (Email owners when this much of the storage limit is used)

We’re facing issue that the “allow for Email owners when this much of the storage limit is used:” are not being enabled for some SharePoint sites, therefore, we have to enable this feature to all sites, however, the problem is we almost have thousands of SP site and we don’t want to manually enable this feature one-by-one so is there a genius man who can help for the scripting? I concluded that script is the only possible way for this to happen.

Kindly Refer to the below:
enter image description here

enter image description here