Hello,
Unfortunately, that is not something we can actually comment on for sure. The script is using the same credentials (those of Microsoft Entra app specified for your domain or tenant in Adaxes), but since it is using a different approach, the script might work. At the same time, the question is about Microsoft functionality, not Adaxes.