Logstash as a service windows

Is there a official way you can run logstash as a service on windows? because logstash is started with a bat, how can I run it as a manged service to monitor if it crashes or if something happens in production

I use nssm https://nssm.cc/ to run the Logstash and Kibana as Windows service and use Powershell script to monitor service running status.