If your coming from another language, this looks like it would be perfectly normal. The gotcha in Powershell is that the coma and the parenthesis are not needed here for a function call and actually mean something else. In this example it defines an array.
It is a simple function that takes two parameters. While this works as a function and looks like something you know, let's do it the Powershell way: