Use that folder as a parameter value on the Location parameter on the Get-Inventory cmdlet.
Something like this for example
$location = get-datacenter $datacenter | get-folder - location $folder
Get-Inventory -Location $location
You can switch on/off recursion with the NoRecursion switch.
If you only want to see VM, use the Get-VM cmdlet instead (with the Location parameter).