Error: Command failed: wmic os get Caption while trying commands like 'ionic info / plugin install'

I am getting this below error from today when i try to run a command ionic info / try to install a plugin ionic cordova plugin add cordova-plugin-cszbar

i was working on the same project till yesyerday were no bugs or errors were encountered.
i installed new ionic root and created a project (working when ionic serve) but getting the same error when i try the mentioned commands

details:

  • windows10
  • node version: v10.16.0
  • npm: 6.4.1
  • cordova@9.0.0
  • ionic@5.0.3
  • androidstudio 3.4.0

while trying C:\ionic+\Cc-Mobile-App-master>ionic info

Error: Command failed: wmic os get Caption
ERROR:
Description = Invalid namespace

at makeError (C:\Users\Welcome\AppData\Roaming\npm\node_modules\ionic\node_modules\execa\index.js:174:9)
at Function.module.exports.sync
(C:\Users\Welcome\AppData\Roaming\npm\node_modules\ionic\node_modules\execa\index.js:338:15)
at windowsRelease (C:\Users\Welcome\AppData\Roaming\npm\node_modules\ionic\node_modules\windows-release\index.js:34:24)
at osName (C:\Users\Welcome\AppData\Roaming\npm\node_modules\ionic\node_modules\os-name\index.js:39:18)
at Environment.getInfo (C:\Users\Welcome\AppData\Roaming\npm\node_modules\ionic\lib\index.js:42:20)

while trying C:\ionic+\Cc-Mobile-App-master>ionic cordova plugin add cordova-plugin-cszbar

cordova.cmd plugin add cordova-plugin-cszbar
C:\ionic+\Cc-Mobile-App-master\node_modules\execa\index.js:347
throw err;
^
Error: Command failed: wmic os get Caption
Description = Invalid namespace

at makeError (C:\ionic+\Cc-Mobile-App-master\node_modules\execa\index.js:174:9)
at Function.module.exports.sync (C:\ionic+\Cc-Mobile-App-master\node_modules\execa\index.js:338:15)
at windowsRelease (C:\ionic+\Cc-Mobile-App-master\node_modules\windows-release\index.js:34:24)
at osName (C:\ionic+\Cc-Mobile-App-master\node_modules\os-name\index.js:39:18)
at new Insight (C:\ionic+\Cc-Mobile-App-master\node_modules\insight\lib\index.js:37:13)
at Object. (C:\ionic+\Cc-Mobile-App-master\node_modules\cordova\src\telemetry.js:26:15)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
[ERROR] An error occurred while running subprocess cordova.

cordova.cmd plugin add cordova-plugin-cszbar exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.

for reference:

anyone please correct me, what i am wrong or what should i need to change inorder to make this working! thanks in advance.