Sort Array Using For Loop In Powershell If Variable Is Null C