Order of operations wrt highlight and a script

I'm starting down the road of creating an ES script to postprocess query results before sending them to the client. However, I also use highlighting on these queries and I would like the highlighting to be applied to the field created by my script.

What is the order that these processes are run? Can highlighting be applied to a field created by a script?

Nevermind. It looks like this is not supported: https://github.com/elastic/elasticsearch/issues/9890