This is for people who would like to try issuing CWS requests using PowerShell. When I first started experimenting with PowerShell I found that simple requests, like DocumentManagement's GetNode(), were easy to get working. More complex requests, however, took quite a bit of trial and error to get working, mostly because I could not find any documentation or examples that addressed the issues I was running into.
My Word document describes the six steps to issuing a CWS request using PowerShell.
The first example shows the minimum code you need to issue a CWS request. The second example uses same code as the first example, but adds try/catch blocks and 'real world' error handling. Examples three and four show you how to make more complex requests. Example three uses DocumentManagement's GetNodesInContainer() and example four uses MemberService's SearchForMembers(). None of the example scripts modify the CS environment they are run on, and the scripts do not require any elevated Content Server privileges.
The assumptions are that you have a working knowledge of PowerShell (i.e. this isn't a PowerShell tutorial), and you have a reasonably current version of PowerShell (i.e. 4.0 or higher).
The following link is to a .zip file that contains my Word document and four examples scripts. I hope it saves someone some of the head scratching I went through.
https://knowledge.opentext.com/knowledge/cs.dll/open/74709821