~ようにと (indirect command)
grammar33 sentences
The pattern ~ように (often + と) used to embed an indirect command or reported request: 'told/asked/demanded/urged/encouraged that someone do X.' Common with verbs of speech, urging, and signaling — 言う, 頼む, 命じる, 要求する, 忠告する, 励ます, 依頼する, 嘆願する. The ~ように fronts the desired action; the matrix verb supplies the speech-act.