You can do via PowerShell.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/set-localuser?view=powershell-5.1#example-2--change-the-password-on-an-account
--please don't forget to Accept as answer if the reply is helpful--