Just use the function below in your own scripts instead of vrayCreateNodeFromDll.
global proc string bertjenkins_vrayCreatePluginTexture(string $nodeName, string $pluginType, int $placement) {
string $node = `shadingNode -asTexture -name $nodeName VRayPluginNodeTex`;
vray addAttributesFromDll $node "texture" $pluginType;
evalDeferred ("vrayCreateNodeFromDll_connectUVW "+$node +" "+$placement);
return $node;
}