In #38495, `ARGV` was isolated to prevent commands from depending on its contents, which might be indeterminate. However, app templates may depend on `ARGV`, so populate it before evaluating them. Fixes #40945.