Hi anbu369,
Are you still having the same issues? I'd suggest you to try to execute the gphoto2 command as a Linux command, then as a Shell command and finally as a Subsystem command just to make sure that it isn't working in all those ways.
Regards,
Diego.