A stateful script template for OSBuddy