If you have an nVidia gpu in your PC you could look up how to force Minecraft to use the nVidia, otherwise you'll need to either updates your intel drivers or downgrade Java
You're managing to save your .command file in rich text.
This is inserting additional characters that your editor uses for formatting rather than showing them outright, however terminal sees them and attempts to parse them as a command, which is failing.