Powershell Change Array To String Javascript Functions And Events