external help file | Module Name | online version | schema |
---|---|---|---|
PublishDacPac-help.xml |
PublishDacPac |
2.0.0 |
Invokes (executes) an external executable via the command-line
Invoke-ExternalCommand [-Command] <String> [-Arguments] <String[]> [[-PipeOutNull] <Boolean>]
[<CommonParameters>]
Invokes (executes) an external executable via the command-line
Invoke-ExternalCommand -Command bcp.exe -Arguments $myStringArray
Invokes bcp (SQL Bulk Copy) with the parameters stored in $myStringArray. Note that the above will only work if bcp.exe is in your PATH. Otherwise, use the full path to bcp.exe
The command-line or windows executable you wish to execute. Should be a full path to the file if the executable is not in the PATH.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
An array of parameters to the passed on the command-line
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Windows executables are started in thier own process, so we stop this by piping the output to Out-Null;
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Written by (c) Dr. John Tunnicliffe, 2019-2021 This PowerShell script is released under the MIT license http://www.opensource.org/licenses/MIT