Convert Batch File To Powershell Script If Statement