I tried your script out and it partly works. It does only voice the users on the list, and it also does not voice the users that are not on the list. However the ban is not activated. The user that is running the script is a half op on the channel.