If your goal is to just make sure those values are synchronized, my understanding is that if you have password writeback enabled, the pwdlastset and LastPasswordChangeTimestamp should update accordingly (maybe a few minutes off at most).
See: Concept SSPR Writeback
Password Expiration With AAD Connect
I haven't tried the manual script that you described, but doing that should just reset the password expiration and move the Last Reset Date.