Hey there, powershell supports input(s) and output(s) in CLIXML format which can be further used with serde to provide better error in output or success messages.
From powershell -h:

You can find more about it here, its main motive was Language independence.