Run script and parse its output