so i see in the script arguments the absolute file name

However, the filename i want to monitor changes daily. Ex: C:\logs\debug.2024-08-13
I want to monitor the current day's file for a pattern. Is there a way to do this (I'm guessing via a variable)?