Doing some test I was able to execute a Resource Action on a VM and show some output from the workflow.
I've created a workflow that get as input a VM and output a string.
Then I've created the resource action and linked to the entitlement.
I'm able to run the workflow and get the result but the string is loosing any kind of formatting even the new lines and is mostly unusable in this state.
Anyone has an idea on how to show a better formatted string in the output?
This is my output:

