We have coincidentally just implemented the equivalent command for SFTP. It has the signature below:
public String executeCommand(String command)
This allows you to execute an arbitrary command on the SSH server and read the reply.
It hasn't been released yet, but if you want an early release version to try out, please email support (at enterprisedt.com).