I have not written many scripts, and most of what I have written are simple, but perhaps some of what I have can be useful for others. At the moment I have provided three scripts, two of which are complete working applications and are not really simple.
For C++ programmers, it might be useful to look at the Microsoft TechNet: Script Center. It is possible to do many things in scripts rather easily, and even if you don't write your own scripts, you can probably learn a lot from the samples and articles. One very useful thing you can do very easily is download the TechNet Script Center Sample Scripts as one help file.
Starting and Stopping a Service
See my Visual C++ Programmer Stuff page for more C++ stuff.