Creating a PowerShell REST API