Bug fix for PowerShell v3

I happened to run this on a system that had PS3 instead of PS4 installed, and discovered that switch statements don't seem to work on type literals in that version.  No idea why.  The code has been updated to compare the FullName properties in these switch statements instead.