I want a more modern interface for some PowerShell tools without building a clunky desktop GUI. Is Pode a reasonable way to run the scripts and return data to a custom front end, or is there a better route?
Can Pode run PowerShell tools behind a custom web front end?
Answers
Yes. Pode can handle the API, authentication and sessions, and serve the HTML, CSS and JavaScript for the interface. Your front end can call API routes that run the PowerShell logic and return the results.
That gives you freedom over the design, but you still need to build the front end itself. For a simple tool, that may be more work than you need.
Reply to this answer
Take a look at Pode.Web too. It provides templates that can get a simple interface going without writing the whole front end yourself. Its way of building pages takes some adjustment if you're used to conventional web frameworks, though.
Reply to this answer
For a corporate tool, I'd also consider an ASP.NET web app rather than choosing Pode automatically. It's a more mature platform for building the application around the scripts.
If you'd rather use an interpreted language for the web layer, Flask or FastAPI are alternatives to evaluate. The right choice depends on how much application you need beyond running the PowerShell tools.
Reply to this answer
Add your answer
Answers are reviewed before publication.
7p~busphase.42:
That sounds like a useful starting point if the interface is mostly forms and results, rather than a heavily customized site.