pub fn hook_command(script_path: &str) -> String
Build a platform-appropriate command string for executing a hook script.