I am guessing that this is only part of the whole code...

I am going to guess that the move command is having a problem with the fact that DirPlus returns an array of FSO objects not strings.

Code:

$SHTMFiles = dirplus($path1,'/s /a-d /f shtm')

;print the file name string
for each $file in $SHTMFiles
? $file.name
next

;move the files...
for each $file in $SHTMFiles
? $file.move('c:\new folder\')
next