Class PS
- Namespace
- SunamoPS
- Assembly
- SunamoPS.dll
Static utility class for calling PowerShell commands and initializing the PS subsystem.
public class PS
- Inheritance
-
PS
- Inherited Members
- Extension Methods
Methods
CallPowershellCommand(string)
Executes a PowerShell command and returns the standard output.
public static string CallPowershellCommand(string command)
Parameters
commandstringPowerShell command to execute.
Returns
- string
Standard output of the command.
Init()
Initializes the PowerShell subsystem. This method allows using PowerShell from shared projects without directly importing SunamoPS. Only needed in the main executable assembly.
public static void Init()