realtime evaluation

it is in general possible to let run a maxscript in background so it evaluates it's code in realtime. i want to use only the viewport as render. so it would be fine if i had'nt to bake keys offline but instead let calculate my maxscript(s) in background for realtime purpose.

if it is possible: how to do?