Query a database through a C# REST API with Powershell (part 1)