Nice and Easy Script.
But,
The sp_change_users_login is deprecated procedure. sp_change_users_login cannot be used with SQL Database.
Below is article to Troubleshoot Orphaned Users (SQL Server)
https://docs.microsoft.com/en-us/sql/sql-server/failover-clusters/troubleshoot-orphaned-users-sql-server
ThanksSaurabh.D