Use this script:
SetMoveObjectStateExt(string& asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed);
This means:
SeMoveObjectState("shelf_1",
-1, 1, 1, 1, true);
Is normally 1 or 0, but try using -1 so it rotates in another direction.
If it doesn't work, go to the model editor and open the .ent file of the shelf. Go to OpenAmount and play with the values until it makes the appropiate effect-I'd reccomend -90, as it seems to be rotating the opposite direction.
Then, save it as ANOTHER .ENT in a folder in your entities folder. This folder should have the name of your story: When going to release it, put the entity in Yourstory<Entities.
Hope it helped!