Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // add reference to project:
  2. // <Reference Include="Microsoft.PowerShell.ConsoleHost"/>
  3. // <Reference Include="System.Management.Automation"/>
  4. class Program
  5. {
  6. private static void Main(string[] args)
  7. {
  8. ConsoleShell.Start(RunspaceConfiguration.Create(),bannerText:"Powershell Host",helpText:string.Empty, args:args);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement