Create List in SharePoint using PowerShell

Open Windows PowerShell ISE and run the below script: 

  1. Add - PSSnapin Microsoft.SharePoint.PowerShell  
  2.   
  3. function CreateCustomList($siteCollectionUrl, $listName) {  
  4.   
  5.     $spWeb = Get - SPWeb - Identity $siteCollectionUrl  
  6.     $spTemplate = $spWeb.ListTemplates["Custom List"]  
  7.     $spListCollection = $spWeb.Lists  
  8.     $spListCollection.Add($listName, $listName, $spTemplate)  
  9.     $path = $spWeb.url.trim()  
  10.     $spList = $spWeb.GetList("$path/Lists/$listName")  
  11.  
  12.     #adding the field type(Number) to the list  
  13.     $spFieldType = [Microsoft.SharePoint.SPFieldType]::Number  
  14.     $spList.Fields.Add("Area", $spFieldType, $false)  
  15.  
  16.     #adding the field type(Number) to the list  
  17.     $spFieldType = [Microsoft.SharePoint.SPFieldType]::Number  
  18.     $spList.Fields.Add("Population", $spFieldType, $false)  
  19.     $spList.Update()  
  20. }  
  21.   
  22.   
  23. $siteCollectionUrl = "http://moss13:1111/"  
  24. $listName = "Continents"  
  25.   
  26. CreateCustomList $siteCollectionUrl $listName  

Next Go to the site ->Settings->Site Contents.

 
 
 Click on created custom List (Continents).
 

You can add the value in the fields, you have defined in the script.