A court has been told how a botched home invasion, which was intended to be used as an “intimidation tactic”, escalated into murder.