If Powershell script is not allowed to be executeed, you may need to run belwo command in Powershell initially:

 Set-ExecutionPolicy -ExecutionPolicy ByPass
 
After finishing the analysis script and mitigation script, you can reset execution policy again:

 Set-ExecutionPolicy -ExecutionPolicy Undefined

