In this article we can able to see how we can create a new topic for a discussion board list using PowerShell.
#get the site URL
#get the List name
#Check weather the list is availbale or not
if($list -ne $null)
#Creating a new discussion
$newTopic = [Microsoft.SharePoint.Utilities.SPUtility]::CreateNewDiscussion($list, "Welcome to DotnetSharePoint");
$newTopic["Body"] = "We hope our site is very usefull to learn new things!";
Write-Host $newTopic.Title " discussion board topic is created successfully"
Write-Host "List does not exists!"