Hi sharonbose,
The link to the program just shuts down a local or remote PC. Infact, on further reading you need to run it on both the server and client.
If you want something like this in Java, you could read this thread:
http://forums.visual-paradigm.com/read.php?f=14&i=34&t=34
Hope this helps.
Martyn