PSWebApi is a simple library for turning PowerShell Scripts or batch/executable files into ASP.NET Web APIs (RESTful Services) out of the box. See details in https://github.com/DataBooster/PS-WebApi.
$ dotnet add package DataBooster.PSWebApiNo README available.