Hi @Naveen Kumar ,
Thank you for posting query in Microsoft Q&A Platform.
From the error, it seems permissions related issue for the identity which runs the script. Kindly Click here to know more about roles and permissions needed and try to implement same and see if that helps.
Please let me know how it goes. Thank you.