hii
You can execute these scripts with sqlcommand
for backup
BACKUP DATABASE [Database name] TO DISK = N'Backup file path' WITH NOFORMAT, NOINIT, NAME = N'Database backup name', SKIP, NOREWIND, NOUNLOAD, STATS = 10
for restore
ALTER DATABASE [Database name] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
RESTORE DATABASE [Database name] FROM DISK=N'Backup file path'
ALTER DATABASE [Database name] SET MULTI_USER
Make sure that CommandTimeout is enough for back or restore