How to Script Object to Rotate Fixed Amount

You can use timeline for that, this will allow you to control the look and ‘feel’ of rotation change too, using curves:

Timeline:

… You can also make it add to current object rotation like that:

By controlling the timeline curve you can also set rotation speed and other things.