Is there a way to display large text like the example in Applescript?
Yep. Create a Macro with that Action using a KM Variable.
Then, from your AppleScript, set the KM Variable and call the Macro.
Or you can call the Macro with a parameter that you use in the Action.
See Script trigger.