How to clone, rename and move bones?

I'm a total newbie with 3DSMAX scripting.

I need to clone bones by their name and rename the "cloned bone" with specific names.

For exemple:

I must clone bip_01_Lhand and rename the clone as _bone_weapon_attachment and move cloned bone 10 units of distance on X axis

Same for bip01_head whose clone must become _bone_hat_attachment and move cloned bone 15 units of distance on Y axis

How can I do that for 3dsmax 2011?