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

getenv? And if you require single quotes, shouldn't you also require the contents to be quoted? Or a single quote in $ct would undo the first quote...