Using PowerShell on a SharePoint 2010 site, how can you create a new list from a list template found in the list template gallery?. I want to be able to add several lists at once (just in numerically ascending order). What I have is:
$web = "http://site"
Get-SPWeb $web | ForEach { foreach ($hotdesk in 1,2,3) { $_.Lists.Add("Hot Desk " + $hotdesk, "",
$_.ListTemplates["My List Template"])}}
However, 'My List Template' doesn't work, since it looks like it only uses the built in list templates, not any custom ones that have been created from an existing list or uploaded to the site.