Rating: +0
You should use -literalpath parameter because by default Get-Content cmdlet uses -path parameter and it uses regex and wildcards but -literalpath use the string c:text[file].txt exactly as it is typed