This a very newbie powershell question, but I couldn't find what's wrong in my little script, I appreciate if anyone can help on this. So, my function is as basic as :
cls
function Matchstring ($source, $compare) {
write-host -ForegroundColor Green ("Comparing " + $compare +' and '+ $source)
}
Matchstring('Test1', 'Test2')
But the result I get is Comparing and Test1 Test2 instead of Comparing Test1 and Test2