Step-2: Enable Billing Export from GCP Console.
If Billing Export is already Enabled continue with Step-3: Execute the script from the GCP Cloud Shell. Otherwise Enable Billing Export from GCP Console, By clicking Show Instruction you will get the steps to follow.