This is what I use:
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
...
End With
And now that I have the ScheduledTask settings figured out, the above executes when db opens from the task, no script file middleman.