How to get macro icon via AppleScript / JXA?

Is it possible to get macro icon programmatically (either via AppleScript or JXA)?