We used to be able to get the title, subtitle, and body of notifications in Notification Center using the solution here.
Running that code now produces the error:
script error: A “text” can’t go after this identifier. (-2740)
Is there a new way to do this in Ventura?