This is not workin in the restore part.please share your views
$DBDropFolder = "\\share\BAK\"
$destinationFolder = "E:\temp\"
$destinationServerInstance = "."
$destinationDbfileFolder = "E:\Data\"
function CopyBakFileFromServer($sourceFolder, $destinationFolder, $patternFull, $patternDiff) {
...