Fixes #5945: add windows support to services

Yes, I agree. But it would still be nice to have service_check_running working on Windows.