Camera script needed a wait command to prevent scheduled task from closing the powershell session early