I can run the attached PS script in the PS ISE, but it fails when I run it through a PS window. I can manually execute each command in the PS window without any issues. It looked like the subsequent commands did not "see" the previous commands, and I put in a sleep -s 5 commands after each of the previous commands leading up to the class definition. It did not matter, it failed very quickly. Using the -noexit -Sta parameters did not change the outcome. I ran PS as an Administrator, .\LoadMailkit.ps1 This is for internal use only to send alerts, and therefore I don't need any of the additional functions; attachments / use with gmail, etc. Thank you for your help. ---------- PS 5 Error: At F:\apps\Everbridge\PS\LoadMailKit.ps1:18 char:36 + class MailboxAddressExtended : MailboxAddress { #does not allow p ... PS 7 Error: ParserError: F:\Apps\Everbridge\PS\LoadMailKit.ps1:18 Line | 18 | class MailboxAddressExtended : MailboxAddress { #does not allow p … | ~~~~~~~~~~~~~~ | Unable to find type [MailboxAddress]. [75860-loadmailkit.txt][1] PS 5 Major Minor Build Revision ----- ----- ----- -------- 5 1 18362 1110 PS 7 Major Minor Patch PreReleaseLabel BuildLabel ----- ----- ----- --------------- ---------- 7 1 0 ---------- [1]: /api/attachments/75860-loadmailkit.txt?platform=QnA