Help with a Powershell script template

Help with a Powershell script template

I'm attempting to write a powershell script template, but I'm having trouble matching the formatting rules laid out in the manual and the help doc on the page. For instance, I'm writing a simple script that looks at a Hyper-V Hypervisor and retrieves the replication status of all the machines My script is the following:

$devicename = $args[0];
get-vm -computername $devicename | where {$_.replicationstate -notmatch "disabled"} | get-vmreplication | select name,replicationhealth

This returns a simple list with the VM name and replication status. The help docs say:

In order to store the result of the script in DB, the output must be in the format given below.

Message:This message will be used as alarm message.
Data:
Instance1 value1
Instance2 value2
... ...
InstanceN valueN

How can I take the data produced and format it the way that Opmanger requires?

Also, the help doc says that only numerical values are allowed as statistical data. Does that mean no data is retrieved unless it's a number, or will it just not build a graph unless it's numerical?

                New to ADSelfService Plus?