I am trying to use Powershell to query my Sharepoint site so I can get a list of items to use as input in my migration script. I have a document library (Site Assets), which has a folder (Calendar Pages) in it with a bunch of .aspx pages. I'd like to migrate these pages to another site.
Using Powershell, I can get a reference to the Site Assets library with:
$web.Lists["Site Assets"]. I can't seem to get a reference to any objects further than this, however. I've tried
$web.Lists["Site Assets"].Lists["Calendar Pages"] and
$web.Lists["Site Assets"].Folders["Calendar Pages"].