Your problem here is with the fact that you're using double quotes to surround the last parameter, but also using double quotes within that parameter to indicate a string.
Since the MultiChain API uses JSON, in general you should use single quotes to surround MultiChain parameters, then use double quotes within those parameters to indicate strings. So:
create txfilter filter1 '{"for":"asset1"}' 'function filtertransaction(){var tx=getfiltertransaction();if (tx.vout.length<1)return "One output required";}'