This might give you most of what you seek: PSA: Script to back up and restore Plex app data on a Windows system