You want to use the do_shortcode()
function which allows the execution of shortcodes the same way that they run when used in the standard content areas.
<?php echo do_shortcode( '[WP-Coder id="4"]' ); ?>
If you need to get more complex you can read all about it here.