After installing kxrpc and including it's path in my script, it worked. Thanks for the direction.