Update certificate and update

I tried to update the certificates
It’s run fine on terminal but not work in Script

I need to remove the certificate before update ?
Please recommend
Thank

Script

 /tool fetch url=https://curl.haxx.se/ca/cacert.pem

/certificate import file-name=cacert.pem passphrase=””