# https://stackoverflow.com/a/43733778 Stack Overflow How to configure a timeout for Read-Host in PowerShell Like I said, this code works in PowerShell version 2, but not in PowerShell version 5. function wait { $compte = 0 Write-Host "To continue installation and ignore configuration