Hello,
I'm Hoang, a System Admin.
I have 5-years of experience working with Powershell script relate Windows, Active directory, Office 365, AzureAD.
With your requirement, I can add some command to get status/exit code to show status of process.
I can help you complete it soon.
Please consider and contact me, we will discuss more.
Thank you.