How to rotate an object a set amount a single time

I have an object that is instantiated and I need it to be rotated 270 degrees around it's own x-axis.

transform.Rotate(Vector3.right, 270, Space.Self);

this code seems to continually rotate the object by 270 while the scene is playing. How can I get it to do a single 270 degree rotation?

Put the above code in Start instead of Update - it shouldn't be changing the rotation multiple times unless you tell it to

This is for C#. Just call it once after instantiation

transform.Rotate( new Vector3(0, 270, 0) );