Apologies, my last comment wasn't clear. I meant copying the contents from your original ps1 file to a new one, THEN adding it as a new script in SM - not modifying the just source in your picture. As far as I know we can't create scripts in SM yet (good feature suggestion though).
That being said, if it works from Intune, there might be something else going on. You could try creating a simple echo script and that will upload. If not, then this is something I would ask Meraki Support about.