Powershell With Statement In Javascript