Use utility method to run remote command in command line tools