< Back
Invoke
Post
NAME Invoke
SYNOPSIS
Invokes an external Command
SYNTAX
Invoke [-command] <String> [[-argumentList] <String[]>] [-nothrow] [-showoutput] [-silent] [-passthru]
[-passErrorStream] [-remainingArguments <Object>] [-encoding <Encoding>] [-useShellExecute] [-asAdmin]
[-stripFromLog <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Invoke [-command] <String> [-nothrow] [-showoutput] [-silent] [-passthru] [-passErrorStream] [-remainingArguments
<Object>] [-encoding <Encoding>] [-useShellExecute] [-asAdmin] [-stripFromLog <String[]>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Invoke [-command] <String> [[-argumentList] <String[]>] [-nothrow] [-showoutput] [-silent] [-passthru]
[-passErrorStream] [-in <Object>] [-remainingArguments <Object>] [-encoding <Encoding>] [-useShellExecute]
[-asAdmin] [-stripFromLog <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-command <String>
Command to invoke (either full path or filename)
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-argumentList <String[]>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-nothrow [<SwitchParameter>]
Do not throw if command's exit code != 0
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-showoutput [<SwitchParameter>]
Write command output to host (default=true)
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters? false
-silent [<SwitchParameter>]
Do not rite command output to host (same as -showoutput:$false)
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passthru [<SwitchParameter>]
Pass the command output to the output stream
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passErrorStream [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-in <Object>
Input for the command (optional)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-remainingArguments <Object>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-encoding <Encoding>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-useShellExecute [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-asAdmin [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-stripFromLog <String[]>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS
SYNOPSIS
Invokes an external Command
SYNTAX
Invoke [-command] <String> [[-argumentList] <String[]>] [-nothrow] [-showoutput] [-silent] [-passthru]
[-passErrorStream] [-remainingArguments <Object>] [-encoding <Encoding>] [-useShellExecute] [-asAdmin]
[-stripFromLog <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Invoke [-command] <String> [-nothrow] [-showoutput] [-silent] [-passthru] [-passErrorStream] [-remainingArguments
<Object>] [-encoding <Encoding>] [-useShellExecute] [-asAdmin] [-stripFromLog <String[]>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Invoke [-command] <String> [[-argumentList] <String[]>] [-nothrow] [-showoutput] [-silent] [-passthru]
[-passErrorStream] [-in <Object>] [-remainingArguments <Object>] [-encoding <Encoding>] [-useShellExecute]
[-asAdmin] [-stripFromLog <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-command <String>
Command to invoke (either full path or filename)
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-argumentList <String[]>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-nothrow [<SwitchParameter>]
Do not throw if command's exit code != 0
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-showoutput [<SwitchParameter>]
Write command output to host (default=true)
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters? false
-silent [<SwitchParameter>]
Do not rite command output to host (same as -showoutput:$false)
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passthru [<SwitchParameter>]
Pass the command output to the output stream
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passErrorStream [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-in <Object>
Input for the command (optional)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-remainingArguments <Object>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-encoding <Encoding>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-useShellExecute [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-asAdmin [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-stripFromLog <String[]>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS