Well my guess is that you're not using it correctly.

Please check out the FAQ for using UDF scripts.


Regedit Command Line Switches
http://winhlp.com/WxRegeditCommandLineSwitches.htm
 
 
Code:

$Folder = '\\SERVER\NETLOGON\REGFILES\'
$File = 'regimports.reg'
SHELL '%WINDIR%\regedit.exe /S ' + $Folder+$File