Yes the script in my OP works well to remove users from all groups. (365 groups, DL, and security groups) but lacked removal from shared mailboxes.
I was able to re write some code from the above linked script and it works well removing the users from shared mailboxes now as well. We now include it with our disable user action.
I would upload the script but not sure how on the script repository.