Powershell Check Path Javascript Interview