I've Tasker installed and also Tasker Settings, latest versions of both and tried something ChatGPT suggested. But it doesn't seem to work, maybe ChatGPT is totally wrong, but here's the output I get:
(I want to turn notifications on and off according to a schedule in my Google Calendar, when working "notifications on" not working "notifications off".
14.07.53/E Run Shell: ->
14.07.53/E Run Shell: ->
14.07.53/E Run Shell: ->
14.07.53/Shell Couldn't convert from easy command: settings put global notification_listener_disallowed_packages com.microsoft.office.outlook doesn't have a valid component
14.07.53/ExternalApp Running External Tasker service -Tasker Settings - Run Shell - can bind: true
14.07.53/E add wait task
14.07.54/E Error: 1
14.07.54/E Couldn't run shell with Tasker Settings: Exception occurred while executing 'put':
java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=27456, uid=10329 requires android.permission.INTERACT_ACROSS_USERS
at com.android.server.am.UserController.checkGetCurrentUserPermissions(UserController.java:3319)
at com.android.server.am.UserController.getCurrentUser(UserController.java:3324)
at com.android.server.am.ActivityManagerService.getCurrentUser(ActivityManagerService.java:19764)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:263)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:53)
at android.os.Binder.shellCommand(Binder.java:1243)
at android.os.Binder.onTransact(Binder.java:1056)
at android.os.Binder.execTransactInternal(Binder.java:1523)
at android.os.Binder.execTransact(Binder.java:1457)