Restarting a service in Windows PowerShell is extremely easy. You just type the Restart-Service cmdlet, followed by the name of the service. As an example, the print spooler service can be restarted using this command:
Restart-Service Print Spooler