help MaxScript for rig system

hey guys, i have a small problem with a script that i am trying to do
the idea is to make a script that can create a rig for any characters (standard rig for people ) with a few clicks ... so the problem is when i try to align a bone to a dummy it aligns the position but not the rotation.

you will find below a screenshot of the result i am getting
by the way this is my first time in maxscript and here is the code :

maxops.affectchildren=false

select $Dummy001
aa = $.rotation.x
bb = $.rotation.y
cc = $.rotation.z
a = $.pos.x
b = $.pos.y
c = $.pos.z
select $Bone001
$.rotation.x = aa
$.rotation.y = bb
$.rotation.z = cc
$.pos.x = a
$.pos.y = b
$.pos.z = c

select $Dummy002
aa = $.rotation.x
bb = $.rotation.y
cc = $.rotation.z
a = $.pos.x
b = $.pos.y
c = $.pos.z
select $Bone002
$.rotation.x = aa
$.rotation.y = bb
$.rotation.z = cc
$.pos.x = a
$.pos.y = b
$.pos.z = c

select $Dummy003
aa = $.rotation.x
bb = $.rotation.y
cc = $.rotation.z
a = $.pos.x
b = $.pos.y
c = $.pos.z
select $Bone003
$.rotation.x = aa
$.rotation.y = bb
$.rotation.z = cc
$.pos.x = a
$.pos.y = b
$.pos.z = c

http://oi58.tinypic.com/2i6mlog.jpg