Gentlemen
Thanks a lot for support and please excuse me if I wasn’t clear in what I want.

What I am looking for is some Kix function like:
Login ($Server name, $User name, $Password).
And then implement any command on that server under the new user name and password.

That is why I mentioned Su.exe because it allows you to switch from user without admin to user with admin privilege and then implement any command under the new account.

Perl\Telnet do the same thing:
$telnet->open('XX.XXX.XXX.XXX');
$telnet->login('user Id','Password');

but as I mentioned that I am facing a problem with this code and I hope to replace with any thing from Kix.

Thank you.