Close "Incompatible Disk" warning on startup with AppleScript?

If you dual- or triple-boot with Mojave and Big Sur, you’ll get this error message when you boot to Mojave:

The offending disk is the Big Sur system disk. Is there a way to close that notification on startup using AppleScript? I can’t figure out how it identifies itself to the OS.