Code:

$Handle1 = FreeFileHandle()
$Handle2 = FreeFileHandle()



you can't do this!
both handles are the same as you don't open the first file before querying the second handle.