Powershell recovery task no output

I have created a powershell script to remove files from various folders when disk space alert is triggered. I can validate that the recovery action runs due to the logging in the event log but I don’t have any output in health explorer.

What commands are needed to see some type of output here so from the console we know the task ran and was was done?

I am using the powershell (community) MP to add this functionality of powershell commands as recovery tasks.

Looks like I just needed to wait longer for the agent to get the new configuration. I now see the write-host output in Health Explorer.