osascript Expected end of line but found class name?
The line


click button "Allow" group 1 of window 1



is missing an ‘of’

click button "Allow" of group 1 of window 1


If the button isn’t in a group, omit the group completely

click button "Allow" of window 1