You cannot directly run a .cmd file as a service. The service executable needs to have service specific entry points compiled into it.
To run a .cmd file you would need to use srvany.exe from the old NT Resource Kit (if you can find it) or use a tool like NSSM
I recommend NSSM. https://nssm.cc/