Send telnet mail with powershell

I want to use the activity powershell to send a message via telnet. In command prompt is like this:

telnet server port
helo server
mail from:
rcpt to:
Subject: Telnet test email
This is a test mail

But i dont know what I need to put in every propertie on the activity. Im also trying this option but i dont know if it’ll work:

Send-MailMessage -SMTPServer hostname -To -From -Subject “This is a test email” -Body “This is the body of the test email sent via PS.”

In this case I know I need to put “Send-MailMessage” into commandText property, but i dont know how to put the rest into the properties.

Please help :open_mouth: