Thanks for your quick replies and info. I have done the searches you suggested. What I am trying to control is a computer located in a vacation home. Once and a while this computer will lock up and I need to reboot. I normally can communicate with this computer through my home computer, but when it locks up and need to turn it off and back on. I have it set up to restart when power is restored, but since I can't communicate with it, I can shut it down. Thus the phone controller to turn it off and it will restart on its own, then I can log in and restart the programs. I haven't tried wol but have been reading about it. That still wouldn't let me shut it down if it has become locked.
Thanks again for your help and if you have any other suggestions, I would welcome them.