Run node and related commands with java