Here is an example where I routinely restore the database by using a script. This is for a test database.
https://olaeldoy.wordpress.com/2016/...ation-testing/
As has been mentioned already, you can also add a step to put the Db in single user mode
Code:USE [master]GO ALTER DATABASE [bravo_bil] SET SINGLE_USER WITH ROLLBACK IMMEDIATE GO