I can't speak to creating profiles for Teams or OneDrive but from past experience I can for Outlook. My advice: don't try it unless you're into sadomasochism (another definition of MAPI). The Outlook profile is a collection of arcane property names (some of which are just hexadecimal values) and binary and decimal values, and bitmaps. I had to do it once, using the Kixstart scripting language (many years ago, predating PowerShell and easier to use than VBS) and I wouldn't wish that experience on my worst enemy!
That's just my opinion. You may find others that have had more pleasant experiences.
It's certainly possible to do, though. Just be prepared for a steep learning curve.