You can simply use the "Share" button in the Shortcuts app to get an iCloud link to your Shortcut, allowing anyone with the link to install, run and edit your Shortcut.
Post
Replies
Boosts
Views
Activity
You can install Python, install the super easy-to-use O365 library using python3 -m pip install O365 and write a script that calls that library. The library uses Microsoft's API directly. You can learn more about the library here.