Powershell Check If Variable Is Array Or Objective For Resume