I'd like to parse the wsl --list --verbose command into the following output in JavaScript.
The following command should split the newlines but puts the characters into their alternative representation ([' x00 x00Nx00Ax00Mx00Ex00 x00 x00 x00 x00 x00 x00 x00 x00...')
console.log(args.split(/[
|
|
]/).filter(String))
[
['distribution', 'status', 'Version'],
['distribution1', 'status1', 'Version1'],
]