How to powerclip with macro?

Making setting for Id cards with macro. To right hand 10 shade to identify its id card data. To left the object to be powerclip inside.

What im looking for with the help of macro, The id card should be powerclip inside the object automatic with 1 click,

It should look like this (see the image below)

I tried with normal recording macro but did not work.

Any suggestion or help how it will work, Thanks