Timeout runnig job

Good afternoon
I have a script to automatically backup and restore a database. I am using the Restore-SqlDatabase cmdlet module SqlServer.

  1. Backup stage.
  2. Database recovery phase
    Database recovery takes 40-50 minutes.
    While the task is running, after 30 minutes the task timer is reset and the task is restarted, creating another backup, while database recovery is still in progress.
    The job confirmation timeout is set to 180.
    How to increase the task timeout?

Product: PowerShell Universal
Version: 4.2.18