I'm not surprised you are not getting anything: Snapin for Microsoft.SharePoint.PowerShell is for SharePoint 2010 only and is not available on the SharePoint 2007 server.
Frankly, the easiest way to do this is to open Internet Explorer, go to the original document library and open the "explorer". Select all documents and copy (ctrl + c). Open another IE window and do the same for the target document library and paste (ctrl + v).
If it does not open in the Explorer view, make sure that the WebClient service is running on the computer that you use to copy / paste. If you are using Windows 2008 R2, this service is not available unless you decide to add the desktop feature. It's much easier to find a Windows 7 machine that will have a WebClient service (but be sure to make sure it works.)
Update:
However, your script is probably around 80%, and this 2010 snapin is not really needed. I cannot verify this right now (sorry), but it should be about 99% correct:
[reflection.assembly]::loadwithpartialname("microsoft.sharepoint") > $null $org = "http://farm/sitecollection/sourcedoclib" $dest = "http://farm/sitecollection/targetdoclib" $site = new-object microsoft.sharepoint.spsite $org $web = $site.openweb() $srcLibrary = $web.Lists["sourcedoclib"] $destLibrary = $web.Lists["targetdoclib"] $destFiles = $destLibrary.Folders["Archived"] foreach ($item in $srcLibrary.Items) { if ($item.File) { $curFile = $item.file.OpenBinary() $destURL = $destFiles.Folder.Url + "/" + $item.file.Name $destFiles.Add($destURL, $curFile, $true) } }
Good luck.
source share