Use a REST api as a shell command