As usual with coding I realize this is probably some obvious thing that I just can't see but I have this function in powershell that is accepting my input as a single array instead of three separate variables and I can't figure out how to fix it.
function Breakfast($itemOne, $itemTwo, $itemThree) {
"For breakfast I want $itemOne, $itemTwo, and $itemThree"
}
Breakfast("eggs", "bacon", "milk")
Breakfast("milk", "cereal", "yogurt")
Breakfast("yogurt", "granola", "fruit")
The output I'm getting is this:
For breakfast I want eggs bacon milk, , and
For breakfast I want milk cereal yogurt, , and
For breakfast I want yogurt granola fruit, , and
In advance, thank you all.