Microsofts documentation is also increasingly just outright wrong:
if you spend enough time looking up things about their newer products like M365, defender, or azure, especially when it comes to scripting related to those, there's a ton of simply outdated info on the official docs that makes it really difficult to figure out why your setup isn't doing what it's supposed to.
from changed variable names, to missing functions, to unexplained buttons, etc., etc.
the newer docs are straight up trash!
you're better off searching around for forum posts or whatever, than using the official docs...