Pimcore 4.6 to 5.0 Migration PHP Error: Class 'Pimcore\Bootstrap' not found in filepath/bin/console

Im following the migration steps mentioned here - https://github.com/pimcore/pimcore-cli/blob/v1.3.3/doc/pimcore_5_migration.md

When I get to the part to execute bin/console. I get the following error.

PHP Error: Class ‘Pimcore\Bootstrap’ not found in filepath/bin/console on line 19
PHP Stack trace:
PHP 1. {main}() filepath/bin/console:0
PHP Fatal error: Uncaught Error: Class ‘Pimcore\Bootstrap’ not found in filepath/bin/console:19
Stack trace:
#0 {main}
thrown in filepath/bin/console on line 19

I am using the console from the following link - https://github.com/pimcore/skeleton/tree/master/bin

This post might help you?

So I managed to fix the problem:

1 - I did a composer update to pimcore 5.2.3 using composer,json of pimcore 5.2.3 https://github.com/pimcore/pimcore/tree/v5.2.3

2 - I made sure that the files, folders and file structure of pimcore 5.2.3 were the same on my server, because for some reason when I executed pimcore5:migrate:filesystem on the pimcore 5 skeleton https://github.com/pimcore/skeleton it somehow messed up the files, folders and file structure on my server.