There could be several reasons why you are unable to make a user an
admin on some devices via a script. Here are a few things you can
check:Permissions: Make sure the user running the script has the
necessary permissions to make changes to the device...