Using PowerShell’s Send-MailMessage cmdlet, we can provide all of the parameters we need to send email through Office 365.Unlike being able to start Outlook via a a scheduled task, the Task Scheduler in Windows sadly doesn’t have a “close application” option.However, you can use a simple vbs-script for it to close Outlook gracefully or even kill the process (as a failsafe method).