I wanted to create an AppleScript to navigate to the 'Login Items' preference pane in System Settings but all the answers that I can find result in AppleScript errors because the pane ids have changed in newer versions of Mac OS.
I did find the following pane IDs using this script.
applescript
tell application "System Settings"
tell every pane
its id
end tell
end tell