Openfire plugin as a windows service - what is stop command?

is there any stop commant available for openfire ??

I have created an openfire plugin with some extra classes added in src and doing “ant plugins” i got target folder. Now i want openfire as a windows service. It require start and stop batch file. I have give openfire.bat as start batch file but i didn’t find any command to stop openfire.

I tried creating new batch file called stop.bat which does -> TASKKILL /T /F /FI “SERVICES eq Openfire” but while stoping service it gives “error 1067 the process terminated unexpectedly”.

Can someone help ?