How to move files from one document library to another library using powershell

$siteURL="http://serverName:1111/"
$site=Get-SPSite $siteURL
$web=$site.RootWeb
$collFiles=$web.GetFolder("Shared Documents").Files
$count=$collFiles.Count
while($count -ne 0)
{
$collFiles[$count-1].MoveTo("Destination Library/" + $collFiles[$count-1].Name, $true)                      
$count--
}
Ebook Download
View all
Learn
View all