I tried this script
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
Start-SPAssignment -Global
$Web = 'http://test'
$SPWeb = Get-SPWeb -Identity $Web
write-Host $Web
$listTemplate = $SPWeb.ListTemplates["Picture Library"]
$SPWeb.Lists.Add($ListUrl,$Description,$listTemplate)
$list = $SPWeb.Lists[$ListUrl]
$list.Title = $ListTitle
$list.Update()
$SPWeb.Dispose()
Stop-SPAssignment -Global
to create a Picture library, But It throws an error message
**Get-SPWeb : Cannot find an SPWeb object with Id or Url :****
And I need to create it for different subsites also, I am not sure how to achieve this, Please suggest me some idea?
I referred this links
How to create Picture Library on office365 sharepoint using powershell?