Perform transaction from a server process

If I have some sort of process that does not interact with UI/ clients or metamask etc is there a way I can get it to automatically sign eth transactions ?

How does it maintain its wallet private keys etc ?

is there example of this anywhere in one of the courses ?