If you start your macro from the command line the log name will always be the same: savelog=MyLog.txt
You can then read the whole log into a variable:
$LOG = Get-Content "C:\Users\Path\Path\MyLog.txt"
Then pull out what you are looking for:
$ERROR = ($LOG | Select-String "text not matched")
Using a combination of a macro and a script the options are limitless