i have seen this thread on some other forum, where you were told that:
a) it's not that simple
b) be more precise (what's a service?)
c) nobody's going to write that script for you
it seems you weren't happy being told that, and did not provide any additional (and, may i say, real) info, and the thread just died.
now you're trying it here again -
twice in slightly different wording.
how many more times will you try? are you honestly hoping the answers will be any different?