Summary: Learn how to recurse a specific number of levels in a directory with Windows PowerShell 5.0.
How can I recurse only three levels into a deeply nested directory structure?
In Windows PowerShell 5.0, the Get-ChildItem cmdlet has a new –Depth parameter
that will control how deeply to recurse, for example:
Get-childitem c:\fso –recurse –depth 3