Also worth noting that PowerShell is completely independent from Windows now. Not only can you install it in almost every other platform, since it's .NET you can embed the runtime in any .NET application. It's incredibly powerful.
not actually "embedded", more like a bit of shim code that extracts the runtime into some temporary directory that then runs the actual code.