Can a Blinded caster with Blindsight use spells that require them to see the target?

The situation I have in mind is the following:

An epic battle ensues between a Young Green Dragon (caster variant) and a Purple Worm. The Purple Worm swallows the dragon; meanwhile, the dragon has blindsight and can cast Command.

Command is a spell that requires you to see the target. However, the dragon is Blinded (so it can’t see) while swallowed. It has blindsight out to 30 ft, though, so it can perceive its surroundings without relying on sight.

Can the Young Green Dragon use the Command spell to have the Purple Worm retch it out?

The general question is: does the interaction of the Blinded condition with blindsight still prevent the caster from using spells that require them to see the target?

There is another question which asks if creatures with blindsight can be affected by the Blinded condition. The answer is yes, and we begin this question with the fact in mind that the caster is both Blinded and has blindsight.