i think it doesnt work because it is trying to execute:
{-JS.Execute-|-var fso, f; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.GetFile("e:\\{Filed---Data}test.txt"); f.name = "test.extension";-}
instead of
{-JS.Execute-|-var fso, f; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.GetFile("e:\\actual-name-randomly-made\\test.txt"); f.name = "test.extension";-}