how to update/upgrade macOs

how to update/upgrade macOs

when i try to patch my mac i must enter local admin credtionals
i know that in JAMF it was realised by scripts (in attach)
how to update/upgrade macOs using patch mngnt without entering local admin credtionals or may be u have work script like this
                New to ADManager Plus?

                  New to ADSelfService Plus?