Hi there
You can do this by T-SQL, but might be difficult to automate if you don't have Management studio / access to the server.
Why don't you have access to Mangement studio?
Do you have access to the server via remote desktop?
Do you have the permissions required to backup and restore databases?