Welcome to Microsoft Q&A Platform, and thanks for sharing the details.
Can you please check if the following path has the files – az, az.cmd and az.ps1
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\
If yes, then please try the operation again after renaming “az.ps1” to something else – eg. “az.ps1_”.
Also, this issue seems to be due to Azure CLI issue reported here.
Hope this helps.
If you need further help on this, tag me in a comment.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.