ddl to clipboard

Is there a way to write a script that shows the details of a table? Such as the names of the columns and the variable types corresponding to those columns?

E.g Col1 varchar(80) Col2 varchar(255) Col3 integer

Normally, I accomplish this with the “ddl to clipboard” feature, but I was wondering if this possible otherwise.

Thanks!