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: mymail@example.com
rcpt to: receiver@example.com
data
Subject: Telnet test email
Hello,
This is a test mail
Greetings
.
quit

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 youremail@domain.com -From none@none.com -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: