You'll want to do any reconfiguration of your system under permissions of the root user. Usually that involves prepending a command with "sudo", but it doesn't work with commands that write stuff to files using output forwarding (e.g. "$ echo -4 > /slots").
In this case I'd suggest switching to root shell with the following command. You'll likely be asked for the password of user "debian":
$ sudo su -
After this all commands will execute with root permissions.
Would it perhaps be easier to exploit those and enable your PWM-s with the config-pin script? Unfortunately, I don't know if enabling all of your desired PWM-s are supported there. Remember, you need root permissions.
# config-pin P8.07 <whatever_the_PWM_command_is>
--
Kind regards,
Tarmo Kuuse