Show a message in the status bar from a script?

I want to display a message in the status bar after the script execution is complete.
e.g. Status "A message"?

The status bar can display variables using the {var:...} code, and scripts can set variables.

I know the status bar variables, this is not the way I want it, it would be convenient to define it directly in the script, such as setting different colors.