I am trying to create a one-liner to recursively copy and flatten a folder structure. This works in the PowerShell console but in the PowerGUI Editor debugger, no files are copied.
Get-ChildItem c:\SourceFolder\* -Include *.dll,*.pdb,*.tlb,*.exe -Recurse | Copy-Item -Destination C:\TargetFolder -Force
Am I doing something wrong? Or do debuggers act differently that the console?