I have created the PowerShell script for list creation. Also added the custom column into the list .if I run this script through PowerShell command it automatically returns the column name when created the columns.
for adding content type code returns huge line of output lines in Powershell window. Added the script is :
$ctToAdd = $spWeb.ContentTypes["Link"] $list.ContentTypes.Add($ctToAdd)
how to restrict the output lines when adding content type code ? please suggest an idea restrict the huge lines in the output.