Hello Shahid
For configuring JBoss EAP to run as a service, please follow Red Hat instructions
https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html/installation_guide/configuring_jboss_eap_to_run_as_a_service#configuring_jboss_eap_as_a_service_in_microsoft_windows_server
If still not working, please share more information about the steps followed and the results.
Regards
Rinat