try setting hpang to:
(setvar hpang (angtof "90"))
or
(command "hpang" "90")
The reason is that the command line version of HPANG accepts angles in degrees while the lisp version accepts angles in radians.
So the thing is that 90 radians = 116.62 degrees