Theory
Create .bat file and copy the powershell code create in macro module
Attach .bat file in new microsoft word insert>Object>Create from File