fixed restart-service so works with powershell 2.0