PowerShell: Reading data from a file with special charecters in path

Find the PoserShell script:


$s = Get-ChildItem -LiteralPath "D:\_[Main]\sample.txt"
$p = [System.IO.File]::ReadAllText($s)
Write-Host $p