I was creating a simple batch script file that adds an exclusion to windows defenfer for my convenience. The code I use is as follows:
@echo off
echo test for exclusion
powershell.exe Add-MpPreference -ExclusionPath “C:\Temp”
cmd /k
However, when I execute it, (even with admin privelleges), - the excluded file path in windows defender shows up as some obfuscated nonsense: