Use commands in a viewmodel

Completed