added exec(cmd,output,input,avpenv) function for exec module

Could you call this [stdin], [stdout]
and can we also get [stderr] ?