Parametrized scripts with external environment