title: How to modify an item's value in a SharePoint list with PowerShell
body: <p>How do I use PowerShell to modify an item's value in a SharePoint list? When I try the following:</p>
  
  <pre><code>$splist.GetItems() | ForEach-Object{
   #Write-Host $_["Item"]
  
   if($_["Item"] -eq $null){
    $SPFileCollection = $folder.Files
    $upFile=Get-ChildItem D:\Tools\SP-scripts\MDNSO-template.aspx
    $tmpValue = $_["Title"]
    $filename = "EM_Doc_Library\$tmpValue"
    $SPFileCollection.Add("EM_Doc_Library\$tmpValue",$upFile.OpenRead(),$false)
    Write-Host "creating the file"
    Write-Host $_["Title"]
    $_["Item"] = "MDNSO-&lt;$tmpValue&gt;"
   }
  }
  </code></pre>
  
  <p>It says, <code>unable to index into an object of type SPlistItem</code>.</p>