Determine which direction to rotate

I have an object which I wish to rotate in a specific direction along it’s z-axis based on the value given. So if I want it to be at a rotation of 90 degrees, it will rotate clockwise by x amount of degrees on every update until the object is at 90 degrees. If I want it to be a rotation of -90 degrees, it will rotate counter-clockwise by x amount of degrees on every update.

How would I achieve this?

transform.Rotate(0, 0, amount);

That’s how the Rotate method works already.