Office Scripts is only available in Excel for Web.
It cannot be used with desktop versions of Excel.
Microsoft has announced a new feature forExcel on the webcalled Office Scripts.

At this time, the newfeature Office Scriptswill be helpful to you.
This feature will reduce repetitive tasks and will speed up your work.
Previously, it was only available to Office Insiders and some users with a specific software version and license.

What is Office Scripts?
Office Scripts is an automation feature-set in Excelfor the Web.
It is based on a different programming experience to automatically do repetitive tasks.

As of now, Office Scripts can be used with Excel for Web-only.
The developer of Microsoft 365 has shared a video of the feature on YouTube earlier this year.
At that time, it was not generally available.
