When you refer to services by name, you need to use their “service name” rather than their “display name”… so you would say something like:
exists running service “winvnc”
For the listening port, we don’t have direct inspectors for that in the current version and so you will need to write an action that writes out netstat values to a file… something like this:
waithidden cmd.exe /C netstat -an > “{pathname of parent folder of regapp “besclient.exe”}\netstat.txt”
And then you can run that action on the computer and then you can write a property that says something like:
exists line whose (it as lowercase contains “listening” and it contains “:5900”) of file “netstat.txt” of parent folder of regapp “BESClient.exe”