'ng' is not recognized as an internal or external command

@angular/cli has not been installed in the project folder yet.

After generating scripts (do not select any Ionic command), open a command prompt or PowerShell at the project folder, run:
npm install
Then run the following Ionic command to test your app:
ionic serve