Maim Cat Form Macro

I want to make a macro that will put me in Cat Form if I’m not already in Cat Form and then cast Maim. I can’t seem to put anything together that works; all I end up doing is casting myself in and out of cat form. If anyone could help me with this that would be awesome. Or if you would like to share some druid macros that you use that’d be cool too. I’m still trying to set up my spells in a way that feels comfortable.