Hi @Filip ,
have you tried Get-Content instead of cat?
$content = Get-Content -Path $fileName -Raw
$content.GetType()
<#
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True String System.Object
#>
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten