Powershell Check For Empty String Javascript Functions