Make and Histogram in a loop (variable wave name)

I would like to run Make and Histogram multiple times, preferably in a loop, so it would be natural to specify the wave names as string variables, as I did for example in a LoadWave statement. However, it looks like Make and Histogram require a hard-coded name in the statement itself. I looked for a workaround using Rename and Duplicate, but without success.
Thanks in advance,
Tom
You need to use $ as string substitution.

Execute this from the command line:

DisplayHelpTopic "String Substitution Using $"
DisplayHelpTopic "Processing Lists of Waves"

This contains the information you are looking for.
Another useful place to look:
DisplayHelpTopic "Converting a String into a Reference Using $"

This snippet may get you started
function MakeProgrammedWave(StrVar)
    string StrVar
   
    Make/O $StrVar
end