Did you notice that Dir, ls or Get-ChildItem do not return hidden files?
To see hidden files, you need to specify the -force parameter:
Dir $env:windir -force
But what if you just wanted to see hidden files only? Filter the result, for example like this:
Dir $env:windir -force | Where-Object { $_.Mode -like '*h*' }