Renamed variable $winGetApp to $winGetAppId to avoid confusion with the WinGet app name
Refactored functions to accept value from pipeline instead of declaring global variables
Fixed an issue where testing the if the WinGet app was installed would fail because the -like operater did not evaluate the WinGet app Id correctly
New functions:-
Test-AppxProvisionedPackage
Test-AppxPackage
Test-WinGetBinary
Install-WinGetApp
Test-WinGetPath
Test-AppxPackageUserInformation
Remove-AppxProvPackage
Register-AppxPackage
Add a ResetLog parameter to wipe log file
Fixed an issue where WinGet app would install but the appx package would unstage because it could not register. We now retry the register command $winGetRetries times
Fixed an issue where the the AppxPackage would test as installed but it was unstaging. We now wait $appxWaitTimerSeconds seconds before testing if the AppxPackage is installed after a WinGet app install