In Power Shell, if you want to peek into a directory to look at the child items then all you need to do is to use the below command:-
Get-ChildItem -Path E:\PowerShell
The above command will peek into the PowerShell’s directory on drive E: which reviews the below items:
Directory: E:\PowerShell Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 25/7/2019 2:07 PM 2068 market.txt -a---- 6/7/2022 3:07 PM 56 music.txt -a---- 21/6/2022 11:54 PM 166 song.txt
You can completely ignore the -Path parameter because the -Path parameter is the positional parameter (the path parameter is in position one) and thus you do not need to specify the -Path parameter and can directly type in the below command which will return the same outcome.
Get-ChildItem E:\PowerShell