Is there a sure fire way to test this without uploading the package to intune first. when running this via Deploy-Application.exe or the ps1 directly it always fails with the following
[03-21-2024 11:58:23.810] [Installation] [Execute-Process] :: Execution failed with exit code [1].
[03-21-2024 11:58:23.822] [Installation] [Execute-ProcessAsUser] :: Failed to create the scheduled task by importing the scheduled task XML file [C:\Users%username%\AppData\Local\Temp\PSAppDeployToolkit\PSAppDeployToolkit-ExecuteAsUser.xml].