How do i get the command tail and parse it into an array, kinda like C++?