Write bootstrap script