How do you manage system-level configurations and automate test environment setup using shell scripting?