The script is available for download from https://gallery.technet.microsoft.com//How-to-list-the-column-432bc5b4. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This script is to list the column names in one row for each table in a SQL Server database.
Sometimes, people want to list the column names into one row for each table in a SQL Server database. This script will provide some help to get the information.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery