Creating a reminder on Mac programmatically/in a script, without opening the Reminders app

Solution 1:

Use EventKit. Apple has had that API for years.

https://developer.apple.com/documentation/eventkit