Invoke-AtomicRedTeam is a PowerShell module to execute tests as defined in the [atomics folder](https://github.com/redcanaryco/atomic-red-team/tree/master/atomics) of Red Canary's Atomic Red Team project.
Looks like PSScriptAnalyzer changed the encoding of all files from UTF8 to UTF8 with BOM(Byte Order Mark). The encoding shouldn't affect importing modules through Powershell commandline. But whenever a function is downloaded through IWR, it parses only UTF8 characters. Hence reverting everything back to UTF8
From the Docs:
When you used Fix, Invoke-ScriptAnalyzer applies the fixes before running the analysis. Make sure that you have a backup of your files when using this parameter. It tries to preserve the file encoding but there are still some cases where the encoding can change.
The checks failed because T1221 has dependency_executor_name defined even though it doesn't have any dependencies.
Fixed the atomic here #2648. PR #2648 needs to be merged before this PR.
Looks like PSScriptAnalyzer changed the encoding of all files from UTF8 to UTF8 with BOM(Byte Order Mark). The encoding shouldn't affect importing modules through Powershell commandline. But whenever a function is downloaded through IWR, it parses only UTF8 characters. Hence reverting everything back to UTF8
From the Docs: When you used Fix, Invoke-ScriptAnalyzer applies the fixes before running the analysis. Make sure that you have a backup of your files when using this parameter. It tries to preserve the file encoding but there are still some cases where the encoding can change.