Parameterized script for environment and order number