Initializes a new instance of the PowershellProcessConfiguration class.
[SetsRequiredMembers]
public PowershellProcessConfiguration(string arguments, bool redirectStandardInput, bool outputRedirection = true, string? workingDirectoryPath = null, bool requiresAdministrator = false, Dictionary<string, string>? environmentVariables = null, UserCredential? credentials = null, StreamWriter? standardInput = null, Encoding? standardInputEncoding = null, Encoding? standardOutputEncoding = null, Encoding? standardErrorEncoding = null, ProcessResourcePolicy? processResourcePolicy = null, bool useShellExecution = false, bool windowCreation = false, IEnumerable<string>? argumentList = null)
The arguments to be passed to the command.
Whether to redirect standard input to the process.
Whether to redirect standard output and error streams.
The working directory for the command.
Indicates whether the command requires administrator privileges.
A dictionary of environment variables to be set for the command.
The user credentials to be used when running the command.
The stream for the standard input.
The encoding for the standard input stream.
The encoding for the standard output stream.
The encoding for the standard error stream.
The processor resource policy for the command.
Indicates whether to use the shell to execute the command.
Indicates whether to create a new window for the command.
An optional verbatim argument list emitted via . Used by the middleware to deliver the PowerShell wrapper without OS re-tokenization.