Can someone help me using this vb script

I have an email requirement , using an invoke vb code inside UiPath causes a security feature to pop up in outlook. I looked into some causes and its due to outlook having an object model guard that creates this pop up when a third party tries to send an email hence why this pop up is occurring also using the mail activities in studio is also causing this issue to happen I came up with a vbscript that uses a Wscriptshell object. When I send it using this method it sends without the security pop-up but I’m using a scripting environment for vbs.
This is the code I’m using in vbs that works for me but when I’m executing the script using the invoke VBS activity in studio there are a few issues I see. One of the arguments specifically .subject or .body is not sending correctly when I try to use an input argument only hard coded string values are working (hence why i have hard coded examples in the post). Is there a way to translate this to vb.net using the powershell object or is there a way I can make the vbs better. Anytime I try to access the properties inside the mail item inside the ise when I’m using it doesn’t show any of the .to .subject .body methods but it works when i run the code so for me its tricky to debug.

'Dim strBody, strSubject, strTo

'strTo = WScript.Arguments(0)

'strSubject = WScript.Arguments(1)

'srBody = WScript.Arguments(2)

Set shell = CreateObject(“Wscript.Shell”)
Set outL = CreateObject(“Outlook.Application”)
Set mi = outL.CreateItem(0)

mi.display

mi.To = “jazlyn.luben@***.com”

mi.Subject = “test sub”

mi.HTMLBody = "test body "
shell.Sendkeys “%s”
WScript.Echo(“email sent.”)

Hello @jazlyn.luben!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff