@jrjong11
If I look at the generated errors (and assuming I translate them correctly) the Skript fails at 3 points:
setcap: either the command does not exist or it cannot be used with sudo
Sudo: setcap: comando non trovato
creating the user iobroker and group iobroker seems to fail
creating the folder /opt/iobroker seems to fail due to lack of permissions.
@Thomas-Braun mentioned the easy way out - use a Debian based Linux as basis.
If you want to keep opensuse, you can try the following steps:
create a user and group iobroker (without password, the user does not need to log on
create a folder /opt/iobroker and „chown“ it to iobroker
ensure that the user iobroker is allowed to use sudo
Run the script again.
A.