Throw error if commands are executed without platform