How do I use aaApi_EnableMenuCommand

Need guidance on how to run aaApi_EnableMenuCommand in PWE.

Do I use a hook to run it?