Unfortunately, the automations don’t allow any of the output functions to work. Automations run in the background of your base, meaning that you won’t see these automations running, and therefore wouldn’t see any messages associated with the script running.
If it’s a matter of testing your script, you can still use console.log() in order to see the results of different parts of your script.
I would suggest, removing the output functions and keeping only the portions of your script that make changes to your base.
Hope this helps. Good luck!