Для начала вам поможет что-то вроде следующего:
#Set Path
$sourcePath = "c:\Windows\Logs"
$extension = ".txt"
$destinationPath = "c:\logs"
#Use Get Child Item to find all files with extension
$files = Get-ChildItem -Path "$sourcePath\*" -Include "*$extension"
#loop through each file and move to destination
foreach($file in $files){
Move-Item -Destination $destinationPath -Path $file.FullName -Confirm:$false
}