In Lua you can get object with
However at this point there's no option to start text with Lua. In this case you would have to display your text via an image or by calling an action that would be displaying the text through action part anyway.
To give an example how to interact with an object. Let's say you want to set a scale to your object, then you would select your object as above and use the ObjectScale field in the data structure table
Objects["name"].ObjectScale = 2
If you want to only return the current value