When macOS tells me an update is pending and I choose to do that overnight, I often still have a few Terminal windows open when I leave for the day. The next morning, macOS says that it politely declined to close those windows, and thus not try to update. So my workday starts with twenty minutes of waiting for the update to run.
How can I tell macOS to kill Terminal and anything else that might prevent the update from running?
Catalina 10.15.4, if it matters. In Preferences > Software Update > Advanced, all the checkboxes are checked.