From the error message you get, you probably skipped the leading / in the paths (also make sure there is no space in the path):
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f "/Applications/Scrivener.app"