Well I've never got around to a command, when I go to trim hooves it's the whole herd and I'm just looking to get it done. My goats do not have horns.
I reach over their back, grab the two legs nearest me, so I'm reaching past the outside legs, give them a pull as I put my weight on the goat and over we go. The legs end up away from me, so if they kick for a bit, I'm in the clear. A goat can't get up without lifting their head or getting their legs under them. I can hold down the neck with my knee and trim away. If they put up a fuss, we just stay there until the fuss is over, then back to trimming. I usually trim by myself, it works for me.
I do have a couple goats that I don't flip, as they are willing to stand, but any issues and it's over we go. Once I had the UPS driver show up during a learning moment, a goat and I was down on the ground taking a break from trimming as we sorted out who was running this program. He was amazed that things were O.K., but soon the goat gave up, hooves were trimmed and everyone was happy. On to the next one....