Powershell While Loop Multiple Conditions If Function With Multiple Criteria