A man has appeared in court accused of maliciously damaging a Scottish golf course owned by US President Donald Trump.