There isn’t a direct relationship between REFramework and VBScript.
If you want to call a VBScript, you’ll need to use the “Invoke VBScript” activity.
Your VBScript requires two arguments: plantCode and mrpcode. Please prepare them as shown below.
If it still results in an error, I tried to understand your VBScript, and it seems like you can input TCode ZBMM016 in SAP, enter PlantCode and mrpcode, execute the search, and save the results to Excel.
This is a very simple process and well-suited for RPA.
