GH command works on original surface and not the trimmed surface

It’s normal.

Then how should I go about doing what I am trying to do?

You are assuming we know what you are trying to do.

How about using the edges of the trimmed surface to trim the result?