How can I increase the length of the string returned by object_definition in sqlcmd?
Specify the -y SQLCMD option to avoid truncating the value to the 256 character default. -y0 will not truncate the value but should be used with caution as mentioned in the doc.

Example:

sqlcmd -i extract.sql -y0 -o %oudir%\extracted.dat