Please format your code as code. There is an according option on the editbar when you create a post. Thanks
You can get the content of your text file with
Get-Content, then you can pipe this content to a
Foreach-Object and
-split what's in our pipeline variable at the
'@', take the
[0] part of it and pipe it to
Out-File.
Grüße - Best regards
PS:> (79,108,97,102|%{[char]$_})-join''