Below PowerShell Script will create multiple document libraries using custom Template.
In My case custom template name is Farm Template.
Add-PSSnapin "Microsoft.SharePoint.Powershell"
#create a subsite using blank Template
$WebAppUrl="https://SharePoint.com/Sites/TEST"
#->SubSite1<-
$SubSiteTitle1 = "Subsite"
$SubSite1Url = "Subsite"
New-SPWeb –url $WebAppUrl"/"$SubSite1Url -name $SubSiteTitle1 -Template "STS#1" –AddToTopNav –UseParentTopNav
#load the custom template to new subsite
$site = Get-SPSite https://SharePoint.com/Sites/TEST
$web = Get-SpWeb https://SharePoint.com/Sites/TEST/Subsite
$custTemplate = $site.GetCustomListTemplates($web)
#Verify the custom template name
$custTemplate | select name
write-host "Loading powershell module" -ForegroundColor Red
# specify the source and destination sites
$sourceWeb = "https://SharePoint.com/Sites/TEST";
$DestinationWeb = "https://SharePoint.com/Sites/TEST/Subsite";
# get the source and destination sites web objects
$sourceWebObj = Get-SPWeb $sourceWeb;
$DestinationWebObj = Get-SPWeb $DestinationWeb;
#creating new document libraries using custom template.
$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::"FarmTemplate"
$DestinationWebObj.Lists.Add("01","My Doc Library",$custTemplate["FarmTemplate"]);
$DestinationWebObj.Lists.Add("02","My Doc Library",$custTemplate["FarmTemplate"]);
$DestinationWebObj.Lists.Add("03","My Doc Library",$custTemplate["FarmTemplate"]);
$DestinationWebObj.Lists.Add("04","My Doc Library",$custTemplate["FarmTemplate"]);
$DestinationWebObj.Lists.Add("05","My Doc Library",$custTemplate["FarmTemplate"]);
Happy SharePointing :)
In My case custom template name is Farm Template.
Add-PSSnapin "Microsoft.SharePoint.Powershell"
#create a subsite using blank Template
$WebAppUrl="https://SharePoint.com/Sites/TEST"
#->SubSite1<-
$SubSiteTitle1 = "Subsite"
$SubSite1Url = "Subsite"
New-SPWeb –url $WebAppUrl"/"$SubSite1Url -name $SubSiteTitle1 -Template "STS#1" –AddToTopNav –UseParentTopNav
#load the custom template to new subsite
$site = Get-SPSite https://SharePoint.com/Sites/TEST
$web = Get-SpWeb https://SharePoint.com/Sites/TEST/Subsite
$custTemplate = $site.GetCustomListTemplates($web)
#Verify the custom template name
$custTemplate | select name
write-host "Loading powershell module" -ForegroundColor Red
# specify the source and destination sites
$sourceWeb = "https://SharePoint.com/Sites/TEST";
$DestinationWeb = "https://SharePoint.com/Sites/TEST/Subsite";
# get the source and destination sites web objects
$sourceWebObj = Get-SPWeb $sourceWeb;
$DestinationWebObj = Get-SPWeb $DestinationWeb;
#creating new document libraries using custom template.
$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::"FarmTemplate"
$DestinationWebObj.Lists.Add("01","My Doc Library",$custTemplate["FarmTemplate"]);
$DestinationWebObj.Lists.Add("02","My Doc Library",$custTemplate["FarmTemplate"]);
$DestinationWebObj.Lists.Add("03","My Doc Library",$custTemplate["FarmTemplate"]);
$DestinationWebObj.Lists.Add("04","My Doc Library",$custTemplate["FarmTemplate"]);
$DestinationWebObj.Lists.Add("05","My Doc Library",$custTemplate["FarmTemplate"]);
Happy SharePointing :)