Use KM/AppleScript to send refresh library to the Mac music app (formly iTunes..)

Hi guys

hope everyone is safe!

was wondering if anyone has had experience with using KM (with internal commands or AppleScript) to allow sending a manual/timed refresh command to the Mac music app (formly iTunes..) so it refreshes (for after I sent files to it)

thx a lot

Z