In powershell, I need to pass a variable into a command in cmd prompt. It would take this structure, and yes I need to open command prompt.
Variable= 5 points
$prog="cmd.exe" ''open cmd
$params=@("/C")
But I'm confused about the third line- can someone demonstrate for me an example of passing a variable in that line with some other parameters?