Hook command execution