I have found my solution...
I can pass it in like so
npx cypress run --env formID=myID --spec cypress/e2e/regression/forms/basicLayoutForm.cy.js
And access it like this in the .cy.js file Cypress.env('formID')
.cy.js
Cypress.env('formID')