Bringing this topic up again as I have a new challenge. So far with your help I managed to automate the conversion of a txt file from UTF-8 to ANSI thru MS Word. But now the thing with server side automation is that you shouldn't be using MS Office applications for server side automation as some error messages may popup that would need interaction.

Long story short need to convert a txt file from UTF-8 encoding to ANSI but without using MS Office applications. What I managed to find online is a VB script that utilizes ADODB.Stream but when I convert it to KIX script it doesn't work for me properly.

Can someone take a look and advise what am I doing wrong? I'm getting an error of type: "Expected ")" at line
 Code:
$stream = CreateObject("ADODB.Stream")
$stream.Open
$stream.Type = 2 'text
$stream.Charset = "utf-8"
$stream.LoadFromFile "C:\input.txt"
$text = stream.ReadText
$stream.Close

$fso = CreateObject("Scripting.FileSystemObject")
$f = fso.OpenTextFile("C:\output.txt", 2, True, True)
$f.Write $text
$f.Close