Russ_TurrentineIt's not clear to me what you're referring to here, because there has been some drift in this thread.
But if you're talking about the original post topic of Sending from an Email Alias, and assuming you're referring to Exchange Online, you don't need PowerShell for this. At this point in time it's super-simple to set up and accomplish. I just go to Microsoft 365 Admin Center -> Users -> Active Users. Click on the user. Then in the flyout, under "Account", just click on "Manage username and email". This lets me add any alias I want to a user. After Saving, I tend to wait for one overnight resync cycle (i.e. wait 24 hours) but after that it works great. The user can then log in to OWA, go to Settings -> View all Outlook Settings -> Compose and reply, and scroll down to "Addresses to send from." They'll see the alias, they can check the checkbox and Save, and from that point on, the alias will be available in the pull down "From" menu in the Compose window for new emails. Replies will automatically detect the appropriate alias and preselect it. It works great, at least in my tenants.
Apologies if this is off-point, and hope this helps?