I have written a small Power Shell script which is installing certificate and appxupload file into the system but the problem is I want whenever user run the script it should run as admin mode.
my script is:
$CertLocation = Get-ChildItem -Recurse | Where-Object{$_.Name -like "*.cer"}
Set-Location $CertLocation.Directory
certutil.exe -addstore TrustedPeople $CertLocation.Name
$AppPackage = Get-ChildItem -Recurse | Where-Object{$_.Name -like "*.appxbundle"}
Add-AppxPackage -Path $AppPackage.Name
Please help me with the query.