Can we install driver in Ubuntu server without pop out and click "ok/yes/no"?

I run below command in Ubuntu server to install the driver:
sudo chmod a+x NVIDIA-Linux-x86_64-390.48.run
sudo sh ./NVIDIA-Linux-x86_64-390.48.run

Next it will pop out few Graphic window, and force me to select yes/no/ok…
Can we install the driver without pop out “yes/no/ok” window?