Here is an example of my query. I would like to use the value created by NEWID() in the SELECT statement.
INSERT INTO myTable (a, b,c,d)
SELECT NEWID() ,@b ,@c,CONCAT('-g ', (need NEWID() value here), ' -m ',@m,' -n ',@db)
AS parameter FROM VBsplit(@g,',')