There are some situations when you need to test application on remote Linux server and sometimes one needs to reboot some services. So we face this problem when we need to restart jboss service remotely from Test Complete js code on Windows based PC.
First of all you need to install putty and plink applications onto your Test Executor PC.
Then you need to create files with service commands, e.g.:
service JBOSS_SVC start
service JBOSS_SVC stop