First, make sure that the G HUB profile you are uploading the macro to is the same as the game you are launching. Doesn’t work anyway?
Try loading the macro into the “Desktop” profile, the one that works by default, and check if the macro is enabled on the desktop. Works? Not in the game?
Solution: you need to run G HUB as administrator, and then G HUB will correctly detect the active game window and include a script with a macro.