This is a script utilizing an obfuscation technique inspired by this white paper. It basically takes the command you want to run, creates a set of unique characters and stores the index of each character of the original command. Then, it recreates the command by taking each index of the original command from the set of unique characters. At the end of the loop the original command has been reconstructed and thus, is called and executed.
The command ping 8.8.8.8
is obfuscated to the following command: