$content = Get-Content \\ac-test.fr\sysvol\scripts\admin.txt $path = "C:\$content" If($path == "pouet") { Write-Output "super" } If(!(test-path $path)) { New-Item -ItemType Directory -Force -Path $path }