You can also use the scripting facilities, as described here:
https://polymake.org/doku.php/user_guid ... /scripting. You can put your frequently used functions in separate script files, if needed, because the script command can be used in other scripts too. Just think of starting every script file with an appropriate `use application "...";` command.