title: How to get items from a Sharepoint Online list using PowerShell?
body: <p>I'm writing a PowerShell script that connects to a SharePoint website and I'm trying to get the items on a list. Here's my code:</p>
  
  <pre><code>$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
  
  $SitePassword = ConvertTo-SecureString $SitePwd -AsPlainText -Force
  $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($SiteUser,$SitePassword)
  $Context.Credentials = $Creds
  
  $web = $Context.Web 
  $Context.Load($web)
  $Context.ExecuteQuery()
  
  $List = $Context.Web.Lists.GetByTitle('Déposes')
  $Context.Load($List)
  $Context.ExecuteQuery()
  </code></pre>
  
  <p>But now I'm stuck with this <code>$List</code> Object and I can't find a way through. For now, I just want to display my list's items.</p>