First, the most important part is to add the System.Management.Automation.dll to your web application. Its location is a mystery...at least for me it was. HEre it is
"C:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0"
Once you added this reference you are able to imports the following asseblies...
using
System.Management.Automation;
using
System.Management.Automation.Runspaces;
Now you are able to code your powershell "HelloWorld" asp.net web application. This is one...