add script to do a bash query