I am writing the below to do some testing. When I encode this part of the command it fails. I’m not sure why.
Any help would be much appreciated.
powershell.exe -executionpolicy bypass -nologo -encodedCommand LQBmAGkAbABlACAAQwA6AFwAVQBzAGUAcgBzAFwAUAB1AGIAbABpAGMAXABUAHIAaQBnAGcAZQByAF8AQQBXAFMAXwB2ADcALgBwAHMAMQA= powershell.exe : -file : The term '-file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check At line:1 char:1