command line scripts for all Pre.IM API queries