PowerShell show first few lines of command

your-command | select -First <number of lines or array-items>
#Example
Get-Process | select -First 3
cat filename | select -First 3
Please follow and like us:
Content Protection by DMCA.com