The application has an user object n_service which has various functions for controlling services. These functions will work with any service, not just PowerBuilder services. The functions are:
of_enumservices - Returns an array of the installed services.
of_eventlog - Logs messages to the system event log.
of_getdisplayname - Returns the display name for a service.
of_getlasterror - Returns the message text for a system error.
of_servicecontrol - Sends commands to a running service, includes Stop, Pause & Resume.
of_servicestart - Starts a service that is currently not running.
of_servicestatus - Returns the service's current status.
regkey - Returns the registry key for the service.
You can use this program as an example for adding features to a client app to interact with your service.