2022.12: It does matter!

Adding events to the local calendar is only through the UI? Or can I also do this scripted?