Hi ShravaniVedantham613199,
This discussion and scenario for that initial poster was that they get the error after doing a ZDU which unchecked that options.
In your case, as this is a test environment... I have to ask has this function ever worked before for this agent.
In addition, the phrase "Error getting RemoteCommand interface reference" sometime is generic while the causes is different... for example for the initial post, in the error message the cause was -
Caused by: java.lang.RuntimeException: Remote execution not enabled for agent.
For your error, if you expand it, at some point, it should have a "Caused by" for yours, what doe it state for the "caused by"?
Since the fact that your remote execution options was already checked... make be believe you are running into something different (but just have the same generic error -Error getting RemoteCommand interface reference. While its "caused by" may be very different.