Apple account switcher

Hi I’d like one workflow allows you to switch between multiple Apple accounts quickly and easily in iTunes, App Store and iBooks.
Also it can automatically turn on iTunes Match (iCloud Music Library) for you after switching (when available).
Passwords will only be stored in Keychain. But I can’t fined any ide or macro. Someone help me or tell me how can do?