How to hide a column in the edit form in sharepoint using powershell

$siteURL="http://serverName:1111/"
$site=Get-SPSite $siteURL
$web=$site.RootWeb
$list=$web.Lists.TryGetList("cl")
$field=$list.Fields["TestCol"]
$field.ShowInEditForm=$false
$field.Update()