The api you are trying to use is in Mailbox 1.15 Requirement Set (https://learn.microsoft.com/en-us/javascript/api/outlook/office.appointmentcompose?view=outlook-js-preview#outlook-office-appointmentcompose-sendasync-member(1)) which isn't yet fully implemented on Outlook for Mac which is likely the cause here.