Guys ,, I got the solution

kindly find the link
Here to Enter new password for expired password
https://gist.github.com/a0adb7d7cc9eae438e0f

Here to reset the password remotely
https://gist.github.com/cfb801c102f31c327eb5


thanks for @candlerb , @robert_k78
and the big thanks for forker from stackflow

-- 
Posted via http://www.ruby-forum.com/.