I've worked out how to use the automation helpers to convert the report to a PDF and use the Send Email helper - inserting User Code into a module so that I Send-Email as command to attach the PDF - to send it in an email with an attached PDF.
The above I do in the tear down section.
What I would really like to do is only send the email on failure but this is really alluding me - the justification is my Manager only wants to see the failures . Does anybody have a way do doing this?
Please help. Thanks!
I didn't find the right solution from the Internet.