I'm little new to powercli.
I have created a script to list all the ESXi hosts across our vCenters which are not in Connected state. I'm able to get the output as a text format and was able to schedule it in Windows Task scheduler. But I would like to automate further by mailing the output to my mail ID. How can I achieve that?