'Android SDK Command Line Package Error: 'sdkmanager' Not Recognized

After downloading the android sdk command line and ran <sdkmanager "platform-tools" "platforms;android-32"> I gotreturned an error:

sdkmanager : The term 'sdkmanager' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 
At line:1 char:
 + sdkmanager "platform-tools" "platforms;android-32"
 + ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (sdkmanager:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I tried downloading the entire studio hoping it will fix the issue but to no avail. Also, I tried editing the advanced system setting's environmental variables path to the location of where I believe the sdkmanager is and still no solution. I am not sure if I have multiple conflicting paths or what is going on. I am a noob so just trying different things from forums to no avail yet. I also do not know if the windows 11 OS is partly responsible for this as the system requirements listed on the android stie is for systems up to OS 10.

I was trying to install and update the latest android packages as a step towards flashing my 2015 build Nvidia Shield (wifi) tablet and sideload the newest android version to update the apps on its system as per the youtube instructions found for the similar K1 tablet here: https://www.youtube.com/watch?v=xn6eul4GISU.

Any help would be much appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source