Sys_WaitForProcess

SYNOPSIS

Waits for a process to finish.

SYNTAX

__AllParameterSets

Sys_WaitForProcess [-ProcessName] <string> [-MaxWaitSec] <int> [-IntervalSec] <int>
 [<CommonParameters>]

ALIASES

This cmdlet has the following aliases,

DESCRIPTION

This function waits for a process to finish running. It checks the process at regular intervals until it either finishes or the maximum wait time is reached.

EXAMPLES

EXAMPLE 1

Sys_WaitForProcess -ProcessName “notepad.exe” -MaxWaitSec 10 -IntervalSec 1

PARAMETERS

-IntervalSec

The interval to check in seconds.

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-MaxWaitSec

The maximum time to wait in seconds.

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ProcessName

The name of the process to wait for.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

For more information, please visit https://capasystems.atlassian.net/wiki/spaces/CI65DOC/pages/19462456125/cs.Sys+WaitForProcess