NOTE: REQUIRES DBATOOLS FROM DBATOOLS.IO!
Migrate databases off of a server to another through powershell and dbatools.
Automatically scripts out permissions before the migration and applies it to the database at destination server.
Checks for both Windows/SQL Orphan Users and fixes them without having to re-enter passwords for SQL Users.