Below is the code in shell script
source /proj/common/tools/repo/etc/profile.d/repo.sh repo project init $branch repo project sync source poky/fnc-init-build
you must add bitbake to path:
set Path=%path%;PathOfBitbake
run it on Command prompt of Windows then retry