
Hi, @MukherjeeAritro-4746 ,
Per my knowledge, we are not able to use PowerShell to modify the macro saved with the excel file. As your problem is the file path change, you will be needed to modify the macro, replacing the old path to new one manually, just like Jazlyn said.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.