The big thing that jumps out at me is the this line...

$GRCDataFile='\\%logonserver%\vphome\GRC.DAT'

It should be...

$GRCDataFile='%logonserver%\vphome\GRC.DAT'

Since the %logonserver% variable already has the two front slashes.