Clear-Host $DefaultValue = [string] $MonResultat = [string] $DefaultValue = "Ma valeur par défaut" $MonResultat = Read-Host "Votre question (par défaut : $DefaultValue)" if($MonResultat -eq $null){$MonResultat = $DefaultValue} if($MonResultat -eq ""){$MonResultat = $DefaultValue} if ($MonResultat.Length -igt 0){ #... #Votre code si il y a un résultat #... } else{ Write-Host "Vous n'avez rien saisi" }