Sure, replace this line
"Memory Available Capacity"=$rp.Runtime.Memory.MaxUsage-$rp.Runtime.Memory.ReservationUsed
with this
"Memory Available Capacity MB"= [math]::Round(($rp.Runtime.Memory.MaxUsage-$rp.Runtime.Memory.ReservationUsed)/1MB,0)
Sure, replace this line
"Memory Available Capacity"=$rp.Runtime.Memory.MaxUsage-$rp.Runtime.Memory.ReservationUsed
with this
"Memory Available Capacity MB"= [math]::Round(($rp.Runtime.Memory.MaxUsage-$rp.Runtime.Memory.ReservationUsed)/1MB,0)