Computer-assisted prescription or delivery of treatment by physical action