All the scripts must be run from the root project folder and not inside the scripts folder
Example:
dart ./scripts/pub_get.dart