Because REST services are much simpler than other frameworks for communicating with web applications, they have gained a great deal of traction over the past half-decade or so. This is no exception in SharePoint, and the SharePoint REST API which began with SharePoint 2010 has increased its capabilities greatly over time.
While REST services may be more familiar and useful to C# or JavaScript programmers, it is not impossible to connect to them from PowerShell. Here, we'll show you a simple example of how this can be done.
For brevity, the code here builds on the previous CSOM example. You'll need to ensure that $SpoCredential and $WebUrl have valid values.
We start by forming a REST URL. These follow a standard convention, ...