I am not sure how to approach on this, I am looking for any reference or hint to create REST API using C#.NET that will run Powershell script saved in .PS1 file and return JSON media type. I have limited experience with API with data model. but Since this one won't have model I am lost. Especially for Collection of objects. I need to run script and return the shell output in JSON format.
↧