functions/Kill-Service.ps1
# Find EXE path for given service # Attempt stop-service. retry 3 times if needed # If stop fails, kill process # Stop service, to ensure proper state Get-WmiObject win32_service | ?{$_.Name -like '*qlik*'} | select Name, DisplayName, State, PathName |