Feature work for Platform Image Repository Cmdlet and Bug fixes