This one had me stumped for a little while. Turns out, there were four versions of the following files hanging out in the GAC. I guess the uninstall process didn't clean these up. I removed all of the older ones, and my scripts started working!
C:\windows\assembly
Microsoft.IdentityManagement.Logging
Microsoft.ResourceManagement