Additional information.
If I put omega2-ctrl gpiomux set pwm0 pwm in a script.sh file and run it then I get the following message:
unknown group/function combination.
Does anybody has an idea how to resolve this issue?