Target Assigning for Pets

There used to be a way to assign your felguard to attack a selected target and remain attacking that target until its death while you attacked other targets, or until I reassigned its target or just opt to return it to assist mode.

It was a combo macro that hitched off of a main attack.

I yet to find a way to do that in Shadowlands. Does anyone have a solution?

Put it on passive, tell it to attack either via the pet bar of via /petattack