I have an out-gridview implemented in my powershell script which shows me all files today created. If there are files in the specific path it works fine but if not nothing happens.
It would be great that the grid appears even if the directory doesn't contain any files. Either the grid lists no items or just maybe a notification that no files have been found.
example:
gci C:\User\Executions\2018-01-25 | Out-GridView
Everything would be nicer than nothing :-)
Sure, I could use Test-Path to query and write anywhere (e.g. Write-Host) but it is more aesthetic to output the message in a grid.