convert powershell script to windows service