Following script updates the web application to use Claims based authentication:
$webApplicationUrl = "http://intranet"
$webapp= Get-SPWebApplication $webApplicationUrl
$webapp. UseClaimsAuthentication
$webapp. UseClaimsAuthentication=$True
$webapp.Update()
$webapp.ProvisionGlobally()
iisreset