This is the true solution: Open PowerShell then drag and drop cmd.exe into PowerShell then press enter a command line window should pop up then type in " java -jar " but don't press enter yet then drag and drop your Optifine download into the command line press enter and Optifine should be installed!