Powershell String To Char Array Javascript