How to check columns in a file using powershell script

What is the powershell syntax to check the columns ina file?