This Script is used to get trouble shooting details
Note:
set value of a as per the conditions listed in comments
set_value should be 0 or 1, '0' to ENABLE '1' to DISABLE
Default value is 1
#provide value for a based on following:
#set a=0 to print latest 5 error logs
#set a=1 to print all serices on endpoint
#set a=2 to print print all process
#set a=3 to Enable or Disable Network Adapter
#set_value should be 0 or 1, '0' to ENABLE '1' to DISABLE
#set a=4 Enable DHCP
#set a=5 List all available Open ports