```
foreach($list in $lists){

if ($list.title -eq 'PerformanceDevelopment'){
foreach($item in $list.items){

if ($item.title -like $Employee+'*'){
$OldLineManager = $item["Manager Name"]
$item["Manager Name"] = "test manager"
$item.Update()

```

Here is a snippet from my code. 

I am trying to edit a item in a list, however the code above is not working. I am using SharePoint 2010. No errors are given it just doesn't work.