Port run command to core

uh, I think "target" is a better name