Macro to intimidate if counter shot is on CD

There is no figuring it out.

You are intentionally not able to cast a spell based on whether another spell is on cooldown.

Read this sticky:
Macros: Essential Information