Thanks a lot BrowserUk for your solution.
I am able to get desired output succesfully with ur comments.
I would also like to enhance my this script.
I would now like to go to remote level, I mean to say I would like to Start / Stop service running on other machine, by running script on my desktop machine.
Can you please help me wayout?