While Function Powershell Script To Run