How to display the output like a table. Currently the output is not like the table
$Count = @()
$Types = ('.jpg', '.png', '.tif', '.gif', '.jpeg', '.mp4', '.mov')
foreach ($Type in $Types) {
$i = 0
$Files = Get-ChildItem 'F:\'-Filter *$type -Recurse | Where-Object { !$_.PsIsContainer }
[array]$Count += $Files.Count
$i += 1
}
Write-Host $Types
Write-Host $Count
like this:
Type Count
------ -------
jpg 100
png 200