calling executables from asp.net webapi

I have an Angular application where in a table, I’m planning to have the name of C# console applications that a user can run.

I was thinking of passing the name or code of the console application to a ASP.NET WebAPI controller that will run the console application.

However, I’m not sure if it’s the “right” architecture for the controller in the ASP.NET WebApi to call different console applications. Or if I should have a layer between the WebApi and calling the executables.

Please let me know if that’s the right way or should I think of a different approach.