Running a Sitecore Powershell script from code
<p>I have installed the popular <a href="https://marketplace.sitecore.net/en/Modules/Sitecore_PowerShell_console.aspx" rel="nofollow">Powershell Console</a> Sitecore plugin, and so far I'm loving it.</p>

<p>I would like to be able to invoke a specific script programmatically in C# (as in, as a consequence of user input), but I could not find any valid resource pointing me in the right direction.</p>

<p>Is there any way of achieving this? Do the rules for classic Powershell scripts apply to the Sitecore version?</p>