Powershell Create Function Multiple Parameters While Loop