If you need to restart a service with a Task, you can create a Task like this:

image

Use either a command file or an vbs script – this sample shows using a command shell file with this content:

image

image

And at the end you could run it from your Computer State View.

image