Sai,
As Kenny mentioned, you can do it by using the Command Wrapper java code. The java will call your PS script that you have on VApp. However, the issue comes in with sshpass as VApp does not allow you install it. I get it to work with the password hardcoded in the ssh script but of course we do not want that when in PROD. So with that being said, I am still looking for a way to use something like sshpass on VApp.