objectId filed is not present
Here README says
az ad sp list --display-name $NAME --query [].objectId -ojson
but output json does not have ".objectId" filed. Assume just ".id" is what is needed but it definitely need to be corrected. Also, line 48 says:
az ad app permission admin-consent --id $appId
where $appId was not set. Again, I assume this should be "appId" from line 22, but not sure about this. Could these please be fixed.