In single PS script, I need to:
Operate on IE window (which means that the script needs to run elevated, as per PowerShell IE9 ComObject has all null properties after navigating to webpage Powershell System.__ComObject.document property no longer works under IE 9)
Then send an email using Outlook, which fails BECAUSE the PS runs elevated (Powershell cannot create Outlook COM object from Command Prompt)
Question: how can I start Outlook un-elevated?
Current command:
$ol = New-Object -com Outlook.Application