Yes, there is a non-API way, i.e. using Batch file.

Check this link.