Rotate a chain bones to 0 coordsys world

Please help me =(. I need a simple script to make a chain bones restore to zero rotation, no need whit Freeze Transform.

AttachmentSize
rotation.jpg36.9 KB