Lanuch Terminal with Custom Command

Hi

I am trying to setup a shortcut that lanuches platform io terminal and runs a custom command. Is there a way to send a commmand to the terminal once started in a macro of some sort?