Hi everyone,
I was wondering if there was a way to group content types.
For example, if there are 2 Excel Templates that need to be available in a library, can we group them by one folder called Excel?
The below cmdLet will group the items based on content type
$web = Get-SPWeb http://www.example.com
$list = $web.Lists[“TargetList”]
$list.ContentTypes | ForEach {
  $_.Name = $_.Parent.Name
  $_.Update()
}
Let me know if it works for you.