Copying SharePoint 2010 Document Libraries with PowerShell

The following problem is a great example of one of those SharePoint situations where you imagine that the job at hand will be relatively straightforward. But that sadly turns on you  with some unexpectedly unsupported scenarios that require going deep down the SharePoint API rabbit hole. These are the original…