Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // add reference to project:
- // <Reference Include="Microsoft.PowerShell.ConsoleHost"/>
- // <Reference Include="System.Management.Automation"/>
- class Program
- {
- private static void Main(string[] args)
- {
- ConsoleShell.Start(RunspaceConfiguration.Create(),bannerText:"Powershell Host",helpText:string.Empty, args:args);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement