Function to run analysis scripts.