Timeout Parameter (Connect-DB2 Cmdlet)
The value in seconds until the timeout error is thrown, canceling the operation.
Connect-DB2 -Timeout int
If Timeout = 0, operations do not time out. The operations run until they complete successfully or until they encounter an error condition.
If Timeout expires and the operation is not yet complete, the cmdlet throws an exception.