I want to toggle natural scrolling without using third-party software, as is done here and here. However, these scripts no longer work in macOS Sonoma 14.0 because the layout of the System Settings application has changed.
This is not a duplicate of similar older questions. Those questions have solutions that work on older versions of macOS, but that do not work on Sonoma. Please do not mark this question as a duplicate.