function to run impala script