Hi Here is an example that may help. The Form1 has TextBox1 and TextBox2 - (both multiline with WorWrap on) to display results. Sub One just concatenates and produces exactly as per your question. Sub Two illustrates evaluation and substitution if indeed the 'AnyVal' parameters are derived from variables (only show for the 4 'AnyVal' parts.) Anyway, here is my attempt. (Only the resultant string - no Process invoked)
Option Strict On
Option Explicit On
Public Class Form1
Dim s1() As String = {"C:\Windows\SysWOW64\wscript.exe", "C:\Temp\AnyProcess.vbs", "Cmd1Par1=AnyVal1 Cmd1Par2=AnyVal2 Cmd1Par3=AnyVal3 Cmd1Par4=AnyVal4", "Cmd2Par1 Cmd2Par2", "Cmd3Par1", "Cmd4Par1"}
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
' verbatim
TextBox1.Text = One()
' evaluate and substitute
Dim AnyVal1 As Integer = 1234
Dim AnyVal2 As String = "String1 Value1"
Dim AnyVal3 As Double = 987.654
Dim AnyVal4 As String = IO.Path.Combine(Application.StartupPath, "Data", "String2 Value2")
TextBox2.Text = Two(AnyVal1, AnyVal2, AnyVal3, AnyVal4)
End Sub
Function One() As String
Dim part As String = String.Empty
For Each s As String In s1
part &= Chr(34) & s & Chr(34) & Chr(32)
Next
Return part
End Function
Function Two(v1 As Integer, v2 As String, v3 As Double, v4 As String) As String
Dim part As String = String.Empty
For Each s As String In s1
s = s.Replace("AnyVal1", v1.ToString)
s = s.Replace("AnyVal2", v2)
s = s.Replace("AnyVal3", v3.ToString("0.000"))
s = s.Replace("AnyVal4", v4)
part &= Chr(34) & s & Chr(34) & Chr(32)
Next
Return part
End Function
End Class