HRM scripting