Tibco bcappmange in a Unix Script

In error handling I want to make sure the first command runs succesfully then go for the second command. Below is the snipplet of my script.
I have observed that bcappmanage utility is always returning 255 status codes irrespective of whether it is Completed or errored out.
Is there anyway to work around inorder to achieve this?