Heres all the script you need to put into it, just replace the OnScriptEnter bit with this:
'Called with the script is ran
Sub Object_OnScriptEnter()
Object.Rotation = 90
End Sub
If Rotation doesnt work, try Rotate instead. Frogboy also has a tutorial about moving objects that relates to this... I'll check there after I post this just to check.