However, eicar files must be opened by a known script host (e.g. python.exe, cmd.exe, powershell.exe, excel.exe, etc, ) in order for execution to be blocked. If the eicar is opened by notepad, or mspaint, the eicar would not be intepreted as a script or executed as such.
Eicar files are designed for Windows OS, so it is not suitable for testing in other OS.
A script host or command interpreter is an executable that reads code from another file and executes it.