Powershell Dynamically Add To Array Javascript Methods And Functions