Tag “office-onedrive-client-itpro” focuses on general issues about OneDrive clients.
Based on your description, your issue is more related to script which is not supported on the Microsoft Q&A forum, I will modify the tag to be “not-supported”.
Thanks for your understanding.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.