When running exe in scriptblock antimalware executable gets triggered
I'm attempting to run an executable remotely on a machine that needs updating. Whenever the exe is called, Antimalware Service Executable pops up on the remote machine for a moment, and then nothing else happens.
Code is attached. Unsure if this is user error/known issue/isolated bug
Issue solved, was PEBCAK, file was flagged as from a foreign source and as such was unable to execute. Set the source file to not have this flag and everything works