You’ll need to load in the external wordpress library first, and then you can call the admin bar.
// Load the external WordPress files
define( 'WP_USE_THEMES', false );
require( './wp-load.php' );
and then call wp_head()
and wp_footer()
accordingly to load the relevant display code.